Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Date query paramaters sent to odbc linked table no longer works

Posted on 2013-01-15
2
Medium Priority
?
843 Views
Last Modified: 2013-01-21
I have a ms access query that I use which has as a criteria of a date for a field called process date.  As an example I put in a criteria of #01/14/2013# for the field called process date and I get an error of odbc syntax error...access violation..note the table object within the query is an odbc linked table...

Note this query works perfectly fine in ms access 2003, but fails in ms access 2010.  My work around has been to use CDate('01/14/2013'), but I would like to avoid having to change a lot of queries and databases to this workaround.  Any suggestions on why ##date criteria no longer work in ms access 2010 with an odbc linked table..
0
Comment
Question by:upobDaPlaya
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 61

Accepted Solution

by:
mbizup earned 1500 total points
ID: 38780823
Check under

Access Options -->  Object Designer --> Query Design

Ensure that you do NOT have a SQL Server Compatible option selected.

SQL Server Compatible Option
0
 

Author Comment

by:upobDaPlaya
ID: 38781100
I checked and both boxes are blank..
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question