sundaram
Registered User.
- Local time
- Today, 23:18
- Joined
- May 28, 2009
- Messages
- 36
Dim StrSql As String
*Dim lngCri As Long*
Dim X As String
X = rst.Fields("Sr#").Value
*lngCri* = InputBox("Enter the Serial NO", "Enter number/", "Question/")
If Len(*lngCri*) = 0 Then
MsgBox Prompt:="No Criteria Specified", Title:="Search tblEmp.MDB"
Exit Sub
End If
StrSql = "SlNo=*" & lngCri *
rst.FindFirst StrSql
If rst.NoMatch = False Then
Movefields
Else
MsgBox "Not Found."
rst.MoveFirst
End If
There is a error msg. RUNTIME ERROR '3077':
Syntax error (missing operator) in expression.
Please help me.
*Dim lngCri As Long*
Dim X As String
X = rst.Fields("Sr#").Value
*lngCri* = InputBox("Enter the Serial NO", "Enter number/", "Question/")
If Len(*lngCri*) = 0 Then
MsgBox Prompt:="No Criteria Specified", Title:="Search tblEmp.MDB"
Exit Sub
End If
StrSql = "SlNo=*" & lngCri *
rst.FindFirst StrSql
If rst.NoMatch = False Then
Movefields
Else
MsgBox "Not Found."
rst.MoveFirst
End If
There is a error msg. RUNTIME ERROR '3077':
Syntax error (missing operator) in expression.
Please help me.