Frage

I have a SQL Server 2012 database with an Access 2007 front-end. My problem is that Access does not recognise SQL Server's dates as they are in a different format.

  • SQL Server-s format is YYYY-MM-DD
  • Access' format is DD-MM-YYYY

When the date is displayed in a text-box, it is displayed as a string (without the little calendar icon next to it). Is there anyway I can configure my Access front-end so that it recognises SQL Server's dates?

I used Microsoft SQL Server Migration Assistant for Access to migrate the data into SQL Server

As this DB is in development I have the SQL Server on my local machine in C drive (no virtual drives)

From my research I have found this answer:

The problem the user has encountered is with a Driver. Microsoft has a new DLL that must be put on a client workstation (or server in the case of Citrix). Once that is done, all the dates in MS Access will work properly. My lastest experience with Access 2010 was exactly the same as Access 2003. It required a DLL. From there, investigate using a DNS-Less connection string

Where would I find this DDL driver and how would I install it.

Thanks Maggs

War es hilfreich?

Lösung

I found that SSMA for some reason converted all the datetimes to datetime2. I went into SQL Server Management Studio and changed them to datetimes and it fixed the issue. You could also check the field mapping in SSMA and adjust it before migrating.

(I have the exact same environment - SQL Server 2012 and Access 2007, using SSMA.)

Andere Tipps

I am using SQL Server 2012 on my local PC (Vista) and have an Access 2010 frontend with ~75 linked tables. The table in SQL Server has a column named 'EnteredDate' that is defined as 'datetime'. In Access the 'EnteredDate'column is defined as 'Date/Time'. In Access, I just ran the following query with proper results:

SELECT DataError.Description, DataError.EnteredDate

FROM DataError WHERE (((DataError.EnteredDate) Between #1/1/2010# And #1/31/2010#));

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top