lookforsmt
Registered User.
- Local time
- Today, 07:47
- Joined
- Dec 26, 2011
- Messages
- 672
HI!
i am trying to open another form from main form on double click but getting below error
i am not sure if i have put the correct quotation mark
thanks
i am trying to open another form from main form on double click but getting below error
PHP:
Syntax error in string in query expression 'MICR_ndt = 'xxxxx'
Code:
Private Sub lstResults_DblClick(Cancel As Integer)
On Error GoTo Err_1stResults_DblClick
Dim IDnr As String
Dim stDocName As String
Dim stLinkCriteria As String
IDnr = Me.MICR_m
stDocName = "frm_Correction"
stLinkCriteria = "MICR_ndt = '" & IDnr
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_1stResults_DblClick:
Exit Sub
Err_1stResults_DblClick:
MsgBox Err.Description
Resume Exit_1stResults_DblClick
End Sub
i am not sure if i have put the correct quotation mark
thanks