This info has helped me as well. For some reason, however. If I use a variable to hold the SQL, it will not work. If I define the SQL directly in the second line, it works fine.
ie
strSQL = "Select......"
me.listboxname.rowsource = strSQL Doesn't work
but
me.listboxname.rowsource = "Select......" Does Work
Alternatively you could use the NAME property of the (DAO) recordset. This technique is very useful because it allows you to use recordsets as recordsources for forms and reports as well!
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.