Sorry, no Vince, there isn't that I have ever found. You could however build a form based on the query, Add a combo box there with a default value, and use it to modify your criteria with a simple line in its "after update" event in VB:
Yes, there is a way and I do it frequently. You have to modify the properties of the drop down list. Here is an example of a subroutine where the user has to pick two colors for an item. It is executed on activation of the color selection form: (the commented code is for my own debugging and use). Stmt (0) is the finished selection string. Te other STMT variables I use to build the parts of the string. When I coded the program, the first thing I did was copy the select statment from the properties box so that it would be correct.
Private Sub setup_SO_color_selection()
' --------------------------------------------------------------------------------------------------------
' This rountine sets up the select statment for the colors to restrict to the manufactuere on the screen
' --------------------------------------------------------------------------------------------------------
Dim stmt(5) As String
Dim q As String
Dim i As Integer
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.