sundaram
Registered User.
- Local time
- Tomorrow, 02:52
- Joined
- May 28, 2009
- Messages
- 36
The following code is showing only "Not Found", what is error in the code. please advise me.
Dim Strsql As String
Dim DtCri As Date
Dim X As String
X = rst.Fields("SUBMITTALDATE").Value
DtCri = InputBox("Enter the SUBMITTALDATE", "Enter the Date/", "Question/")
If Len(DtCri) = 0 Then
MsgBox Prompt:="No Criteria Specified", Title:="Search tblRFI.MBD"
Exit Sub
End If
'Strsql = "SUBMITTALDATE=#" & Format(DtCri, "mm/dd/yy") & "#"
Strsql = "SUBMITTALDATE=#" & DtCri & "#"
rst.FindFirst Strsql
Debug.Print Strsql
If rst.NoMatch = False Then
Movefields
Else
MsgBox "Not Found."
rst.MoveFirst
End If
Dim Strsql As String
Dim DtCri As Date
Dim X As String
X = rst.Fields("SUBMITTALDATE").Value
DtCri = InputBox("Enter the SUBMITTALDATE", "Enter the Date/", "Question/")
If Len(DtCri) = 0 Then
MsgBox Prompt:="No Criteria Specified", Title:="Search tblRFI.MBD"
Exit Sub
End If
'Strsql = "SUBMITTALDATE=#" & Format(DtCri, "mm/dd/yy") & "#"
Strsql = "SUBMITTALDATE=#" & DtCri & "#"
rst.FindFirst Strsql
Debug.Print Strsql
If rst.NoMatch = False Then
Movefields
Else
MsgBox "Not Found."
rst.MoveFirst
End If