Creating a list based on multiple queries (1 Viewer)

shabbaranks

Registered User.
Local time
Today, 15:36
Joined
Oct 17, 2011
Messages
300
Hi,

I have 3 select queries which Im trying to output to a combo - Ive tried a UNION query but I get an error

ODBC-- call failed ODBC Driver SQLBase.....

Firstly is do the results need to match within a union query? I mean they have no relationship what so ever Im just trying to populate this combo with the same results.

Secondly is there a better way to do it? 2 of the select queries query a linked SQL table and the third is a local table. All of the select queries work on their own.

Thanks
 

Ranman256

Well-known member
Local time
Today, 10:36
Joined
Apr 9, 2015
Messages
4,337
The ODBC-error should have nothing to do with the UNION.
If each query individually works, then put the local and 1 linked table together in a union, see if you still get the error.

and all queries have exact # fields in the union?
 

shabbaranks

Registered User.
Local time
Today, 15:36
Joined
Oct 17, 2011
Messages
300
Strangely enough it now works - bizarre :)
 

Users who are viewing this thread

Top Bottom