Hi,
here is an example
DoCmd.OpenForm "frm2ndForm", , , "([VisSiteNo] = " & Me.txtVisSiteNo & ")
"
--frm2ndForm is the name of the form to open
--[VisSiteNo] is a number field, if [VisSiteNo] was a text field use
"([VisSiteNo] = """ & Me.txtVisSiteNo & """) "
--txtVisSiteNo is the name of the textbox on the 1st form, [VisSiteNo] is
the primary key in the table for the 1st form
--txtVisSiteNo is also the name of the textbox on the 2nd form,
[VisSiteNo] is the primary key in the table for the 2nd form
Jeanette Cunningham
a said:
I have a form with command button and text box
how can I open another form but with condition textbox is equal in 2
forms I mean (matching)
by command button on the main form.