Here is the code that I am having problems with:
Private Sub Result_AfterUpdate()
Dim stDocName As String
Dim stLinkCriteria As String
DoCmd.Save acForm, "Customer FRM"
If [Result] = "APT" Then
DoCmd.OpenForm "AppointmentDate FRM", , , "[ResultsID]=" & Me![ResultsID]
End If
[Forms]![AppointmentDate FRM]![AppointmentDate].SetFocus
End Sub
What I am trying to do is if the feild Result (a combo box) = APT then this pop-up form will appear and allow the user to enter the date of appointment then click the back button on the form to send them back to their original form. When I use this it gives me the Access error and wants to send it to Microsoft. Can anyone help with this? Thanks in advance. sam
Private Sub Result_AfterUpdate()
Dim stDocName As String
Dim stLinkCriteria As String
DoCmd.Save acForm, "Customer FRM"
If [Result] = "APT" Then
DoCmd.OpenForm "AppointmentDate FRM", , , "[ResultsID]=" & Me![ResultsID]
End If
[Forms]![AppointmentDate FRM]![AppointmentDate].SetFocus
End Sub
What I am trying to do is if the feild Result (a combo box) = APT then this pop-up form will appear and allow the user to enter the date of appointment then click the back button on the form to send them back to their original form. When I use this it gives me the Access error and wants to send it to Microsoft. Can anyone help with this? Thanks in advance. sam