I hope someone can help, i have the following code on the open event of a form to find a specific record
Me.Recordset.MoveFirst
Do Until Me.Property_Ref = Forms!frmPropertyBasicDetails!PropertyRef Or Me.Recordset.EOF
Me.Recordset.MoveNext
Loop
thios works fine if there is a matching record,but in the event there is not a matching record i want to know how i could get a msg box to appear telling the user no matching record exists and then the form will go to a new blank record.
Me.Recordset.MoveFirst
Do Until Me.Property_Ref = Forms!frmPropertyBasicDetails!PropertyRef Or Me.Recordset.EOF
Me.Recordset.MoveNext
Loop
thios works fine if there is a matching record,but in the event there is not a matching record i want to know how i could get a msg box to appear telling the user no matching record exists and then the form will go to a new blank record.