A
Anne
I am using the following code to open Form FrmJobs2 and go to a specific
record.
Private Sub txtInvNo_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
stLinkCriteria = "[Jobid]=" & Me.txtJobID
stDocName = "FrmJobs2"
DoCmd.OpenForm stDocName, , , stLinkCriteria, , acDialog
DoCmd.Close acForm, "FrmCollections", acSaveYes
Me.Requery
End Sub
If I then want to select a different job from the combo box on that form
(all jobs are listed), it does not let me select a different job. How can I
clear the "stLinkCriteria".
Thanks,
record.
Private Sub txtInvNo_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
stLinkCriteria = "[Jobid]=" & Me.txtJobID
stDocName = "FrmJobs2"
DoCmd.OpenForm stDocName, , , stLinkCriteria, , acDialog
DoCmd.Close acForm, "FrmCollections", acSaveYes
Me.Requery
End Sub
If I then want to select a different job from the combo box on that form
(all jobs are listed), it does not let me select a different job. How can I
clear the "stLinkCriteria".
Thanks,