I have created an instance of a form using the following procedure;
Public Sub OpenFormSelectReportByTitle()
Dim frm1 As Form
Set frm1 = Form_frmSelectReport
frm1.RecordSource = "qryFindReportByTitle"
MsgBox frm1.RecordSource
frm1.Visible = True
End Sub
How can I use the current value of a field on frm1 as search criteria in a QBF? (query by form)
The following does not work.
form!frmSelectReport!txt1 or
form!frm1!txt1
Thank you,
Mabjro
Public Sub OpenFormSelectReportByTitle()
Dim frm1 As Form
Set frm1 = Form_frmSelectReport
frm1.RecordSource = "qryFindReportByTitle"
MsgBox frm1.RecordSource
frm1.Visible = True
End Sub
How can I use the current value of a field on frm1 as search criteria in a QBF? (query by form)
The following does not work.
form!frmSelectReport!txt1 or
form!frm1!txt1
Thank you,
Mabjro