V
vaa571
Hi there,
i have a form where i would like to use for search by two criterias: Lot# or
Part Number - these are two field in the table.
need help to add that to the code
Private Sub Command39_Click()
End Sub
Private Sub Command42_Click()
On Error GoTo Err_Command42_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Open Orders"
stLinkCriteria = "[PART NUMBER]=" & "'" & Me![PART NUMBER] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command42_Click:
Exit Sub
Err_Command42_Click:
MsgBox Err.Description
Resume Exit_Command42_Click
End Sub
Private Sub Command43_Click()
DoCmd.Close
DoCmd.OpenForm "Search & Update"
End Sub
i have a form where i would like to use for search by two criterias: Lot# or
Part Number - these are two field in the table.
need help to add that to the code
Private Sub Command39_Click()
End Sub
Private Sub Command42_Click()
On Error GoTo Err_Command42_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Open Orders"
stLinkCriteria = "[PART NUMBER]=" & "'" & Me![PART NUMBER] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command42_Click:
Exit Sub
Err_Command42_Click:
MsgBox Err.Description
Resume Exit_Command42_Click
End Sub
Private Sub Command43_Click()
DoCmd.Close
DoCmd.OpenForm "Search & Update"
End Sub