Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Swap using an access db

Status
Not open for further replies.

Erikson

Technical User
Sep 18, 2002
4
0
0
NL
Hi,

When i use the following code;
rsgevallen.Open
("select * from [numbers] where Date = #" & Datechoose & "#"), cnDB, adOpenStatic, adLockOptimistic

and the date in datechoose is 16-10-02 it find's the record 16 october no problem.
when the date in datechoose is 3-10-02 it find's 10 march ??

the date is a short notation d-mm-yy and i am acccessing an access database

does anyone has any idea's ?

Thanks

Erik
 
try:
rsa.Open ("SELECT * FROM [numbers] " & _
"WHERE Date= " & "#" & Format(Datechoose, "mm,dd,yy") & "#")

For me it worked with similar problem

Shlomo
 
Still won't always work. Use dd mmm yyyy instead Peter Meachem
peter @ accuflight.com

 
Thanks for the input,

It works fine now

Erik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top