I have just started this program. The only thing I have tried is the [Forms]![FrmTimeCard1]![Combo18]. If I use @=Enter_Name the user has to type in the name. The mgr wants to read from a combo box.
What I am tring to do is have the query read from the form to give me the report based on the forms information.
ADPs have no 'native' queries. Everything is executed from SQL Server. The server has no way to read information from user interface, so...I guess you need a stored procedure returning a recordset and having an input parameter...
I would call the stored procedure from the GotFocus event of the combo-box (this is Access 2003 version code):
Private Sub ComboName_GotFocus()
Set Me.ComboName.Recordset = CurrentProject.Connection.Execute("dbo.SPName(" & [Forms]![FrmTimeCard1]![Combo18] & ")")
End Sub
In this way, the combo gets populated every time you place the cursor in it.
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.