I have a query that asks the user for the name of a computer workstation and returns the room it in in. I want to convert it so when the user selects the computer name from a drop-down combobox on a form, it runs the query with the selected name and returns the name to a static-text caption.
I already have the form set up and the combo box works fine (and i use the onChange event to update the caption of the static text).
The only thing i cannot do is call the same query, passing to it the selected station name and capture the room name.
I guess the syntax would be something like :-
<StaticText>.Caption = CurrentDb.*call query command*("<QueryName>!<StationName>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
But this is my first time in VB (I'm more of a C++ guy myself ;-) ) and i just can't figure it out.
TIA
T Jones
I already have the form set up and the combo box works fine (and i use the onChange event to update the caption of the static text).
The only thing i cannot do is call the same query, passing to it the selected station name and capture the room name.
I guess the syntax would be something like :-
<StaticText>.Caption = CurrentDb.*call query command*("<QueryName>!<StationName>"
But this is my first time in VB (I'm more of a C++ guy myself ;-) ) and i just can't figure it out.
TIA
T Jones