G
Guest
Hi
I have following procedure which I thought would open form at matching works
order record but just opens form at new record
any help please
Thanks
Private Sub Box_No_Click()
If Box_No.Value = "VP CORR" Then
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "RETURNS"
stLinkCriteria = "[Works Order]=" & "'" & Me![Works Order] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
End If
End Sub
I have following procedure which I thought would open form at matching works
order record but just opens form at new record
any help please
Thanks
Private Sub Box_No_Click()
If Box_No.Value = "VP CORR" Then
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "RETURNS"
stLinkCriteria = "[Works Order]=" & "'" & Me![Works Order] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
End If
End Sub