Hi
That brings up all coolers that are overdue a service. What i want is say
CompanyX Coolers need servicing every 12 months during Nov. of every year.
I only want these overdue services to appear on Nov report.
CompanyY Coolers need servicing every 6 months during Jan and July of every
year. I only want these services to appear on the Jan and July reports.
CompanyZ Coolers need servicing every 3 months during Jan, April, July and
Oct of every year. I only want these services to appear on the Jan, April,
July and Oct reports. Does this make sense, it's kind of hard to explain
> DateAdd("m", [Freg], [Service Date]) < Date()
>
[quoted text clipped - 66 lines]
> > > > > > > > Thanks
> > > > > > > > Natasha
Klatuu - 13 Nov 2006 16:49 GMT
I don't know that you have the data available to you to accomplish this. You
could look at the last service date and assume that if the freq is 6 and the
month of the service date is 5 it should be done again in Nov. Which would
be:
DateAdd("m", [Freg], [Service Date]) < Date() And Month(DateAdd("m", [Freg],
[Service Date])) = Month(Date())
> Hi
> That brings up all coolers that are overdue a service. What i want is say
[quoted text clipped - 76 lines]
> > > > > > > > > Thanks
> > > > > > > > > Natasha
Natasha - 13 Nov 2006 19:08 GMT
No good it says that the expresion is too complicated
> I don't know that you have the data available to you to accomplish this. You
> could look at the last service date and assume that if the freq is 6 and the
[quoted text clipped - 84 lines]
> > > > > > > > > > Thanks
> > > > > > > > > > Natasha
Klatuu - 13 Nov 2006 19:35 GMT
One thing I notice is Freq is spelled with a G Freg. I don't know if that
will help. The formula is not that complex. I don't know why it is a
problem unless there is a syntax problem. I did a test on a table I have,
but it does not have a frequecny field, so I plugged in 6 for testing
purposes. This worked for me and returned the correct records:
<Date() And Month(DateAdd("m",6,[begindate]))=Month(Date()) And
Year(DateAdd("m",6,[begindate]))=Year(Date())
> No good it says that the expresion is too complicated
>
[quoted text clipped - 86 lines]
> > > > > > > > > > > Thanks
> > > > > > > > > > > Natasha
Natasha - 14 Nov 2006 10:15 GMT
Hi
Ya freg field is ServiceFrequency but i already had that changed. i'm
getting a data type mismatch in criteria expression. I have checked and all
the field names are correct they are ServiceFrequency and ServiceDate
> One thing I notice is Freq is spelled with a G Freg. I don't know if that
> will help. The formula is not that complex. I don't know why it is a
[quoted text clipped - 95 lines]
> > > > > > > > > > > > Thanks
> > > > > > > > > > > > Natasha
Klatuu - 14 Nov 2006 14:36 GMT
Try doing to one piece at a time to see if you can find the data mismatch
problem. Like start with <Date() and if that works keep adding pieces until
you find the error.
> Hi
>
[quoted text clipped - 101 lines]
> > > > > > > > > > > > > Thanks
> > > > > > > > > > > > > Natasha
Natasha - 15 Nov 2006 10:41 GMT
That brings up 120 records there should only be 6 coolers that have an
overdue service. It seem to be bringing up all services to date for nov. I
just want to show the 6. Do i have to do seperate queries for frequency 3
months and 12 months. I was putting in [serviceFrequency] instead of 6 to
get all three frequencies into the expression, thats why it was giving me
data mismatch.
> Try doing to one piece at a time to see if you can find the data mismatch
> problem. Like start with <Date() and if that works keep adding pieces until
[quoted text clipped - 105 lines]
> > > > > > > > > > > > > > Thanks
> > > > > > > > > > > > > > Natasha
Klatuu - 15 Nov 2006 14:33 GMT
Is service frequency not a numeric field? It should be.
No, you don't need separate queries. That is what using the service
frequency field is for - to determine when the cooler was due for service.
> That brings up 120 records there should only be 6 coolers that have an
> overdue service. It seem to be bringing up all services to date for nov. I
[quoted text clipped - 112 lines]
> > > > > > > > > > > > > > > Thanks
> > > > > > > > > > > > > > > Natasha
Natasha - 15 Nov 2006 15:09 GMT
Yes it is a numeric filed. Why did you put in the 6?
> Is service frequency not a numeric field? It should be.
> No, you don't need separate queries. That is what using the service
[quoted text clipped - 116 lines]
> > > > > > > > > > > > > > > > Thanks
> > > > > > > > > > > > > > > > Natasha
Klatuu - 15 Nov 2006 15:21 GMT
As I stated previously, I did not have a table with a frequency in it, so I
plugged the 6 in to test the logic.
> Yes it is a numeric filed. Why did you put in the 6?
>
[quoted text clipped - 118 lines]
> > > > > > > > > > > > > > > > > Thanks
> > > > > > > > > > > > > > > > > Natasha
Natasha - 15 Nov 2006 16:55 GMT
Sorry
So when i put in [ServiceFrequency] instead of the 6 i get a data mismatch i
did it bit by bit <data() worked but the next one gave me a mismatch
And Month(DateAdd("m",[ServiceFrequency],[ServiceDate]))=Month(Date())
> As I stated previously, I did not have a table with a frequency in it, so I
> plugged the 6 in to test the logic.
[quoted text clipped - 121 lines]
> > > > > > > > > > > > > > > > > > Thanks
> > > > > > > > > > > > > > > > > > Natasha