Major typo in that last post... first sentence talks about "a field" on the main field" instead of "on the main form". That is in addition to the type of Parameter in the original post subject <sigh>.
Just as a curiosity why does this work? Is it a proper method?
The best I can figure is that forms default creating behind the scenes variables that get picked up and also change if you do something like import your objects to a new ADP to connect to a different server. (Upside production jet data to different server and scripted 'queries' over).
However, to get this to work all the time and consistently, I set the rowsource to an inline user defined function and concatenate the parameter in and requery.
So I write a procedure that looks something like...
Sub updateContact
Me!cboContact.Rowsource = "Select * From fnContact (" & Me!SuppID & ")"
Me!cboContact.requery
End sub
I then call updateContact on the form on current event tand the after update event for Suppid.
Depending on the application (i.e. unbound form), setting the rowsource on the forms open event is an alternative (skip the requery as the method is not available yet).
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.