J J-F Registered User. Local time Today, 05:44 Joined Nov 14, 2001 Messages 41 Nov 19, 2001 #1 How can I populate a list box using an sql query using variables from 'option group' controls?
Travis Registered User. Local time Yesterday, 21:44 Joined Dec 17, 1999 Messages 1,332 Nov 19, 2001 #2 You populate the RecordSource Property with the SQL String. This should refresh the List Box.
J J-F Registered User. Local time Today, 05:44 Joined Nov 14, 2001 Messages 41 Nov 21, 2001 #3 Many thanks.
T tehNellie Registered User. Local time Today, 05:44 Joined Apr 3, 2007 Messages 751 Dec 4, 2007 #4 Awise from the gwave! I'm sure it's simple enough and I'm just [still] being dense, but right now I'm trying Code: strSQL ="SELECT somegubbins FROM sometable WHERE somecriteria ishappening" me.lstListboxname.rowsource = strSQL me.lstlistboxname.requery Not chucking up any errors, not putting the SQL inthe rowsource or showing me any results either. I knew there was a reason I tried to do as little as possible with forms Any suggestions or pointers as to what I'm doing wrong appreciated. [edit] I hate Access' fixation with brackets, the problem was in the query after all that, my bad. Last edited: Dec 4, 2007
Awise from the gwave! I'm sure it's simple enough and I'm just [still] being dense, but right now I'm trying Code: strSQL ="SELECT somegubbins FROM sometable WHERE somecriteria ishappening" me.lstListboxname.rowsource = strSQL me.lstlistboxname.requery Not chucking up any errors, not putting the SQL inthe rowsource or showing me any results either. I knew there was a reason I tried to do as little as possible with forms Any suggestions or pointers as to what I'm doing wrong appreciated. [edit] I hate Access' fixation with brackets, the problem was in the query after all that, my bad.