List dates 3 months ago

Korncraig

Registered User.
Local time
Today, 16:38
Joined
Mar 19, 2007
Messages
11
Hey

I need to find Customers who have not had a meeting for over three months and i need to list them in a query, please could someone help me as this is getting very frustrating
 
In a query create a new field by putting this in:

IIf(DateAdd("m", 3, YourDateFieldHere) < Date,"Needs Meeting","No Meeting Necessary")
 
Thanks but

Thanks bob

But i need the clients who have not had a meeting arranged for over three months, if that makes any sence here is the question that was asked " Report lsiting all clients who have not had a meeting arranged for more than three months"

Thanks

Craig
 
But i need the clients who have not had a meeting arranged for over three months,
that what he showed you.

do you have a field that had when their last meeting was? im assuming u do.
just enter that in the yourdatefield!
 
Yeah, i have put in a query their surname and meeting date, would i need to put that criteria in that date criteria box or just in the next empty space

sorry for acting dumb
 
new field

IIf(DateAdd("m", 3, [Meeting Date]) < Date,"Needs Meeting","No Meeting Necessary")
 
Its now asking for a meeting date, all i need it to do is list the clients who have not had a meeting in the last 3 months

really really sorry if i'm starting to get on your nerv

thanks again

Craig
 
If it is asking you for a parameter then you didn't type the right name of the field in where rainman put [Meeting Date]

replace [Meeting Date] with your actual field name.
 
Right my fieldname is called MeetingDate in the meetings table so i enterd the field name in wher it says to, but then this message came up

Data Type mismatch in criteria expression

sorry for being a complete noob
 
Is your MeetingDate field, in the meetings table, really a date field or is it text?
 
IIf(DateAdd("m",3,[MeetingDate])<"Date","Needs Meeting","No Meeting Necessary")

this is what i am inserting

i should curl up into a ball and cry
 
Take the quotes off of <Date as Date is a function not a string value.
 
You don't want long time for this. Change it to ShortDate.
 
Done that but then it says the same message and puts quotes back on "Date"
 
Changed it to short date and input mask of 00/00/0000;0;_
but the ssame error message comes up

sorry for this stupid question
 
The only thing I can say now is I think it's time you tried posting your database.

Go to Tools > Database Tools > Compact and Repair and then after that zip your database and then try posting here. It has to be 393Kb or smaller after compacting and then zipping for it to post here. If it winds up too big then I can give you my email address via PM to send it to me.
 
it's 552KB

could i send it via Messanger if at all possible mate
 
delete the forms and tables that dont refer to your problem. then compact and repair then zip. should shrink it down!
 
Okay, it's fixed. Check out the report and the query underlying the report for what I did. Sorry it took so long, but I had a meeting at work and then had to come home and fix dinner for my kids.

And just as a side note, you could have posted the database here as it was only 75Kb when you zipped and sent to me and it is only 59Kb after I compacted and zipped it.
 

Attachments

Users who are viewing this thread

Back
Top Bottom