Th button wizard isn't creating buttons properly!?
I need it to create a button that opens a form relative to the customerID already in use... but it doesn't seem to work and it just brings up the first record and says it's been filtered, when clearly is hasnt.
I highlighted the part I thinik the wizard didn't creat properly!?
This is really frustrating right now.
I need it to create a button that opens a form relative to the customerID already in use... but it doesn't seem to work and it just brings up the first record and says it's been filtered, when clearly is hasnt.
Code:
Option Compare Database
Private Sub Command6_Click()
On Error GoTo Err_Command6_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "002"
[COLOR=red]stLinkCriteria = "[CustomerID]=" & Me![CustomerID][/COLOR]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command6_Click:
Exit Sub
Err_Command6_Click:
MsgBox Err.Description
Resume Exit_Command6_Click
End Sub
I highlighted the part I thinik the wizard didn't creat properly!?
This is really frustrating right now.