C
Carmen
I created a command button that will send users straight to the Check ID#
requested and print that specific Check Request form. It works for records
that start with an alphabet but I get this Syntax error message with the
records that beginning with a numeral.
Here is the code that the computer generated:
Private Sub Command198_Click()
On Error GoTo Err_Command198_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "General Ledger"
stLinkCriteria = "[CheckID]=" & Me![PubID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command198_Click:
Exit Sub
Err_Command198_Click:
MsgBox Err.Description
Resume Exit_Command198_Click
End Sub
What else would I need to add to this code so that my records that beginning
with numerals will also be able to go directly to check ID# specified?
requested and print that specific Check Request form. It works for records
that start with an alphabet but I get this Syntax error message with the
records that beginning with a numeral.
Here is the code that the computer generated:
Private Sub Command198_Click()
On Error GoTo Err_Command198_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "General Ledger"
stLinkCriteria = "[CheckID]=" & Me![PubID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command198_Click:
Exit Sub
Err_Command198_Click:
MsgBox Err.Description
Resume Exit_Command198_Click
End Sub
What else would I need to add to this code so that my records that beginning
with numerals will also be able to go directly to check ID# specified?