Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > Datatype mismat...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 30432 of 31576
Post > Topic >>

Datatype mismatch in criteria

by Snoopy33 <hollandj33@[EMAIL PROTECTED] > Jun 2, 2008 at 12:12 PM

I have a query that builds a date from a text field with the date
imput as yyyymmdd in the query, so i have to piece it together in my
expression as follows:

exp: FormatNumber(DateDiff("d",DateSerial(Left([package activity date],
4),Left(Right([package activity date],4),2),Right([package activity
date],2)),Now())))


if i don't use a criteria, it works fine.  when i try to use the
criteria <7 is when i get the error.  It will show the correct records
for a few seconds prior to getting the error, but then i get an error
"datatype mismatch in criteria".

I've tried it with and without the formatnumber function, with and
without the dateserial function (rearranging the expression) and still
get the error.

Any help?
 




 1 Posts in Topic:
Datatype mismatch in criteria
Snoopy33 <hollandj33@[  2008-06-02 12:12:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 23:04:58 CST 2008.