ADO Recordset Find Method Behaviour

grovelli

Registered User.
Local time
Today, 01:37
Joined
Apr 3, 2005
Messages
16
If I put a breakpoint before the code line
rst.Find ("Giorno=#" & Format(Forms!Prev!CGior, "mm/dd/yyyy") & "# ")
in the Private Sub Comando255_Click()
of the attached mdb, select March 8, 2006 on the calendar and then click the Agenda button on the startup form, I can see that the conditional statement
If rst.EOF Then
returns True
How's that possible since the Varie table already contains the March 8, 2006 date?
 

Attachments

When I do it, it returns False. Let me make sure i'm doing it correctly:

1) Put a break at the rst.Open line in Comando255_Click
2) Select March 8 from the calendar
3) Push the calendar button

before and after I run the .Find, I am getting rst.EOF to return False.
 
Yes, thank you Modest.
I've found out ADO recognises regional settings as differently from DAO, SQL and VBA so I don't need to format
rst.Find ("Giorno=#" & Format(Forms!Prev!CGior, "mm/dd/yyyy") & "# ")
I can just use
rst.Find ("Giorno=#" & Me!CGior & "# ")
 

Users who are viewing this thread

Back
Top Bottom