Duh! I answered my own question...
Build the sql statement dynamically, in a string, with vba, then set the combo box's RowSource property to the value of the string (sql statement). One can create any rowsource and change it at anytime based on user input in other fields.
That's not the answer. The problem is not how to construct the sql statement. The problem is how does one pass a variable to the combo box's record source property from the Access form to sql server? The sql statement in the above answer will work in a .mdb file, but not in a .adb. How do you do...
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.