do you need the square brackets around the field names in the array?
you could try removing square brackets and changing the line ...
sql = "SELECT DISTINCT " & A(q) & " FROM
qrySoftwareTracking"
to
sql = "SELECT DISTINCT [" & A(q) & "] FROM...
you will have problems with both the test ...
If .Fields & "('" & A(q) & "')" <> "" Then
and the action ...
Me.cboITJobNo.AddItem .Fields & "('" & A(q) & "')"
try changing both lines to ...
If .Fields(A(q)) <> ""...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.