MultiListbox Union Query

skea

Registered User.
Local time
Tomorrow, 01:21
Joined
Dec 21, 2004
Messages
342
I need help here.
i have a multiselect listbox on my form and i want to hard-code its rowsources depending on certain selection criteria.Iam finding a problem. Actually i dont get any results when i use the query below. Any idea what iam missing out.
Code:
 Me.OrgTypesLB.RowSource = "SELECT DISTINCT ORG_TYPE FROM tblOrganTypes UNION SELECT" & "All" & " from tblOrganTypes"

Kea
 
How about:
Me.OrgTypesLB.RowSource = "SELECT DISTINCT ORG_TYPE FROM tblOrganTypes UNION SELECT 'All' As Bogus from tblOrganTypes"
 
Last edited:
Thanks Man.
i Replaced As Bogus with As Correct.
 

Users who are viewing this thread

Back
Top Bottom