D
dan.cawthorne
I Have Created a Dialog Form With a Button That Opens Another form,
the Form That Gets Opened By The Dialog form is Based On a Query, and
The Creteria Is Set To A value Inputed on the Dialog Form,
Which Works Great When I Have Results Turned Up,
If No Results The Form is Blank,
Is Their A Code i can put in the CLick Event of the Dialog form that
Opens the form, if there are no Results Wont Allow me to Open the
form. and a Message..
Ive Tried The Following
DoCmd.OpenForm "Project_Results_ByRecievedDate"
If Me.RecordsetClone.RecordCount = 0 Then
MsgBox "No records"
Me.FilterOn = False
End If
End Sub
And I Get a RecordsetClone Error Any Help
the Form That Gets Opened By The Dialog form is Based On a Query, and
The Creteria Is Set To A value Inputed on the Dialog Form,
Which Works Great When I Have Results Turned Up,
If No Results The Form is Blank,
Is Their A Code i can put in the CLick Event of the Dialog form that
Opens the form, if there are no Results Wont Allow me to Open the
form. and a Message..
Ive Tried The Following
DoCmd.OpenForm "Project_Results_ByRecievedDate"
If Me.RecordsetClone.RecordCount = 0 Then
MsgBox "No records"
Me.FilterOn = False
End If
End Sub
And I Get a RecordsetClone Error Any Help