teebird
Technical User
- Dec 11, 2001
- 239
Hi Everyone
I have this sub and want to have a custom error message come up when the user clicks in an empty record. This is one continuous form.
Private Sub Details_Click()
Dim gstrWhereFileNo As String
gstrWhereFileNo = "[FileNo] = " & Me!FileNo
DoCmd.OpenForm FormName:="frmHearingForm", WhereCondition:=gstrWhereFileNo
DoCmd.Close acForm, Me.name
Forms!frmHearingForm.SetFocus
End Sub
Private Sub Hearing_Date_DblClick(Cancel As Integer)
Details_Click
End Sub
Any suggestions.
Thanks
tee
I have this sub and want to have a custom error message come up when the user clicks in an empty record. This is one continuous form.
Private Sub Details_Click()
Dim gstrWhereFileNo As String
gstrWhereFileNo = "[FileNo] = " & Me!FileNo
DoCmd.OpenForm FormName:="frmHearingForm", WhereCondition:=gstrWhereFileNo
DoCmd.Close acForm, Me.name
Forms!frmHearingForm.SetFocus
End Sub
Private Sub Hearing_Date_DblClick(Cancel As Integer)
Details_Click
End Sub
Any suggestions.
Thanks
tee