Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / SQL Server / ADP / February 2006

Tip: Looking for answers? Try searching our database.

datetime in adp connected to an sqlserver 2005 database

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark - 22 Feb 2006 23:10 GMT
I have some problem with datetime in sql server 2005.

In adp project connected to an sql server 2000 when I refer to a datetime
formatting I use something like this:

select * from  aaa where  mydate = '" & me!date & "'"

and all is ok.

In adp project connected to an sql server 2005 when I refer to a datetime
formatting I have to use sometime :

select * from  aaa where  mydate = '" & me!date & "'"

but sometime :

select * from  aaa where  mydate = '" &  format(me!date,"mm/dd/yyyy") & "'"

May be I do something's wrong.

Is there someone who can help me?

Thanks in advance

Marco Dell'Oca
Milan Italy
giorgio rancati - 23 Feb 2006 01:47 GMT
Hi Marco,

you can use the iso format
----
select * from  aaa where  mydate = '" &  format(me!date,"yyyymmdd") & "'"
----
the iso format is indipendent from client and server localization

bye
Signature

Giorgio Rancati
[Office Access MVP]

> I have some problem with datetime in sql server 2005.
>
[quoted text clipped - 22 lines]
> Marco Dell'Oca
> Milan Italy
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.