sql - Access Date Parameters - Date Range Prompt Error -


I have an Access 2007 report that gives a signal for several dates, it is using the SQL query: / P>

  Select call. Collide, Contact County, Call. Contact, call.adet, call. Message, call. Notes, calls. Join Time Inner by Contact [Contact ID] = Call on Contact. [Contact id] where (((call (dated)) [date from:] and [date:]));  

It works for most dates but I am getting an error when using 07/01/2009 and 06/14/2010

< P> This expression is typed incorrectly, or is too complex to evaluate. For example, a numerical expression may contain very complex elements, try simplifying the expression by assigning parts of the expression with variables. (Error 3071)

I have confirmed that none of the calls.Det value is zero. What is a better way to signal the user to the date range?

The best way to get the parameter is by a user with a form, by mentioning the form in the query For example:

  between forms! FrmDates! Set and Form! FrmDates! ToDate  

This life will be easy for you, because you can evaluate the input before running the query. This will make life a lot easier for the user, so you can take advantage of the calendar that connects the data data type in Access 2007 & amp; 2010.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -