I am trying to open up a form from another form
but I need the second form to filter based on what the first form has in agentname textbox this is what I have so far can someone tell me what I am doing wrong.
Private Sub cmdnext_Click()
Dim stdocname As String
Dim stform As String
stdocname = "frmquestion1"
stform = "forms!frminformation!agentname"
DoCmd.openform stdocname, , , ("[Agentname] = stform"
thanks
but I need the second form to filter based on what the first form has in agentname textbox this is what I have so far can someone tell me what I am doing wrong.
Private Sub cmdnext_Click()
Dim stdocname As String
Dim stform As String
stdocname = "frmquestion1"
stform = "forms!frminformation!agentname"
DoCmd.openform stdocname, , , ("[Agentname] = stform"
thanks