bodvoc
Red Sea Pedestrian
- Local time
- Today, 20:38
- Joined
- May 4, 2003
- Messages
- 54
Help!!!
I have a form looking up patient details based on a query, a find patient button opens a pop up with boxes asking for surname and first name to be added and which the query uses to refresh the main form. and a find button that refreshes the main form...
But on click, if no one is found of that name the main form goes completely blank and the message box fails to show?? I have check the other post for this and nothing I do fixes it??? heres the code
Private Sub Run_Query_Click()
On Error GoTo Err_Run_Query_Click
Forms![Service User].Requery
If (RecordsetClone.RecordCount = 0) Then
Beep
MsgBox "Sorry, No one of that name found", vbOKOnly
End If
Exit_Run_Query_Click:
Exit Sub
Err_Run_Query_Click:
Resume Exit_Run_Query_Click
End Sub
Wot am I doing wrong???
Cheers
Bodvoc
I have a form looking up patient details based on a query, a find patient button opens a pop up with boxes asking for surname and first name to be added and which the query uses to refresh the main form. and a find button that refreshes the main form...
But on click, if no one is found of that name the main form goes completely blank and the message box fails to show?? I have check the other post for this and nothing I do fixes it??? heres the code
Private Sub Run_Query_Click()
On Error GoTo Err_Run_Query_Click
Forms![Service User].Requery
If (RecordsetClone.RecordCount = 0) Then
Beep
MsgBox "Sorry, No one of that name found", vbOKOnly
End If
Exit_Run_Query_Click:
Exit Sub
Err_Run_Query_Click:
Resume Exit_Run_Query_Click
End Sub
Wot am I doing wrong???
Cheers
Bodvoc