benu302000
Programmer
Ok, I've got a command button on a form that opens up a new form populated by data thats related to a control in the old form. It was work a moment ago, and now I'm getting an error that says "Syntax error (missing operator) in query expression "[Billet Number]=" heres my code for the button
Private Sub update_billet_Click()
On Error GoTo Err_update_billet_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Billet Table"
stLinkCriteria = "[Billet Number]=" & Me![Combo8]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_update_billet_Click:
Exit Sub
Err_update_billet_Click:
MsgBox Err.Description
Resume Exit_update_billet_Click
End Sub
I'm new to VB so I might just be missing a syntax glitch. thanks
Private Sub update_billet_Click()
On Error GoTo Err_update_billet_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Billet Table"
stLinkCriteria = "[Billet Number]=" & Me![Combo8]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_update_billet_Click:
Exit Sub
Err_update_billet_Click:
MsgBox Err.Description
Resume Exit_update_billet_Click
End Sub
I'm new to VB so I might just be missing a syntax glitch. thanks