Devv Active Member Licensed User Longtime User Oct 25, 2015 #1 i found this online SELECT LastName, FirstName, Address, City, State, Zip FROM Clients UNION SELECT LastName, FirstName, Address, City, State, Zip FROM Patrons ORDER BY LastName, FirstName; Click to expand... how can i do that on b4a ?
i found this online SELECT LastName, FirstName, Address, City, State, Zip FROM Clients UNION SELECT LastName, FirstName, Address, City, State, Zip FROM Patrons ORDER BY LastName, FirstName; Click to expand... how can i do that on b4a ?
Yafuhenk Active Member Licensed User Longtime User Oct 25, 2015 #2 What error do you get when you use that query? Upvote 0
Devv Active Member Licensed User Longtime User Oct 25, 2015 #3 YAFUHENK said: What error do you get when you use that query? Click to expand... Thanks for fast respond, i have no experience with databases on android , so i'm looking for someone who can convert this queries to b4a code, and i will modify the code on my own. Upvote 0
YAFUHENK said: What error do you get when you use that query? Click to expand... Thanks for fast respond, i have no experience with databases on android , so i'm looking for someone who can convert this queries to b4a code, and i will modify the code on my own.
M Mahares Expert Licensed User Longtime User Oct 25, 2015 #4 try this: Code: Dim MyQuery As String MyQuery = "Select LastName, FirstName, Address, City, State, Zip FROM Clients " _ " UNION Select LastName, FirstName, Address, City, " _ & "State, Zip FROM Patrons ORDER BY LastName, FirstName" Cursor1=SQL1.ExecQuery(MyQuery) Upvote 0
try this: Code: Dim MyQuery As String MyQuery = "Select LastName, FirstName, Address, City, State, Zip FROM Clients " _ " UNION Select LastName, FirstName, Address, City, " _ & "State, Zip FROM Patrons ORDER BY LastName, FirstName" Cursor1=SQL1.ExecQuery(MyQuery)
Devv Active Member Licensed User Longtime User Oct 25, 2015 #5 Mahares said: try this: Code: Dim MyQuery As String MyQuery = "Select LastName, FirstName, Address, City, State, Zip FROM Clients " _ " UNION Select LastName, FirstName, Address, City, " _ & "State, Zip FROM Patrons ORDER BY LastName, FirstName" Cursor1=SQL1.ExecQuery(MyQuery) Click to expand... Thank you very much can you please give me the full code with specifying the database path ? Upvote 0
Mahares said: try this: Code: Dim MyQuery As String MyQuery = "Select LastName, FirstName, Address, City, State, Zip FROM Clients " _ " UNION Select LastName, FirstName, Address, City, " _ & "State, Zip FROM Patrons ORDER BY LastName, FirstName" Cursor1=SQL1.ExecQuery(MyQuery) Click to expand... Thank you very much can you please give me the full code with specifying the database path ?
Yafuhenk Active Member Licensed User Longtime User Oct 25, 2015 #6 Take some time to read the beginners guide. It's not only a matter of typing the code but also of understanding whats happening Upvote 0
Take some time to read the beginners guide. It's not only a matter of typing the code but also of understanding whats happening