C
CharlieNews
Hi,
I have a button with the following command:
Private Sub OpenQuoteDetails_Click()
On Error GoTo Err_OpenQuoteDetails_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Quote Details"
stLinkCriteria = "[Order]=" & Me![Order Number Combo]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_OpenQuoteDetails_Click:
Exit Sub
Err_OpenQuoteDetails_Click:
MsgBox Err.Description
Resume Exit_OpenQuoteDetails_Click
End Sub
I would like to add and OR option to the link criteria to:
stLinkCriteria = "
I have a button with the following command:
Private Sub OpenQuoteDetails_Click()
On Error GoTo Err_OpenQuoteDetails_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Quote Details"
stLinkCriteria = "[Order]=" & Me![Order Number Combo]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_OpenQuoteDetails_Click:
Exit Sub
Err_OpenQuoteDetails_Click:
MsgBox Err.Description
Resume Exit_OpenQuoteDetails_Click
End Sub
I would like to add and OR option to the link criteria to:
stLinkCriteria = "
=" & Me![QuoteNumber]
Can anyone help?
Thanks in advance.
Charlie