Solved UNION query in VBA

tihmir

Registered User.
Local time
Today, 09:04
Joined
May 1, 2018
Messages
257
HI all,
I need to create UNION query in VBA like this:
Code:
SELECT [Inspector]
FROM qryInspectors
UNION SELECT Top 1 "- Department DZK -"
FROM qryInspectors;

Do I have to declare a variable like Dim sSQL As String
sSQL = SELECT .......

Then I need to match with combobox like this:
Me.combobox.RowSource = sSQL
 
Last edited:
Yes. What happened when you tried it?
 

Users who are viewing this thread

Back
Top Bottom