>When I have been using dates and Access in Visual Basic, they
>have always been setup as string variables.
Can you explain this?
Quote:>Why don't you build the condition in a variable, and then issue
>the FINDFIRST on the string. This way you could put a
>breakpoint on the FINDFIRST, and see how the statement looks.
The statement looks OK.
When I go to the debug window I get the date from the RS to look the
same as the Criteria. ie Visually, it looks like it matches. Here is
the updated code:
----
Dim ReplaceWhere As String
ReplaceWhere = "(TransID=#" & TransID & "#)"
MsgBox ReplaceWhere
FeedRS.FindFirst ReplaceWhere
----
In access It will find the record if in the find dialog box it is
marked as search as formated, if not checked search as formated, then
I cannot find the match.
I'm lost, as I have tried a number of different variations using the
format function and none have worked.
Can I do something with formating the criteria like this:
ReplaceWhere = "(Format(TransID, ""General Number"") =" &
Format(TransID,""General Number"") & ")"
I have tried but have syntax problems . .
Ideas?
How do others do this? I'm sure I'm not first to try this . ..
Eric