G
Guest
I am writing a database for a garage. I need to produce a report that shows
when a service is due, six months after a service date.
when a service is due, six months after a service date.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
TC said:Before you even /think/ about writing your forms & reports, you should
design your table structure to record the information accurately. You
do not do this on the basis of how you want the forms & reports to
look. Instead, you do it to reflect the actual nature & relationships
of the data that you have to store.
I suggest that before you go any further, you show us the tables that
you intend to create, and the names of the fields in each table (the
types & lengths don't matter here). Also, clearly show the primary key
field(s) for each table. If you don't know what a "primary key" is,
you need to do some reading on the topic of "database normalization",
before you go any further!
HTH,
TC [MVP Access]
In response to TC, Database fields are:-
Name Text
Address Text
Telephone Text
Make Text
Model Text
Chasis No. Text
Work Done Text
Date ShortDate
Ofer said:In the query criteria add to the sevice date 6 months and check if it's
smaller then the current date
Select * From TableName
Where DateAdd("m",6,[service date]) < Date()
--
Please respond to the group if your question been answered or not, so other
can refer to it.
Thank you and Good luck
Crusher said:I am writing a database for a garage. I need to produce a report that shows
when a service is due, six months after a service date.
Douglas J Steele said:Picky point, but it's probably better to use
Select * From TableName
Where [service date] < DateAdd("m",-6,Date())
Access is smart enough to realize that DateAdd only needs to be run once in
the query above, while it would have to be run for each row in the table in
the query below.
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
Ofer said:In the query criteria add to the sevice date 6 months and check if it's
smaller then the current date
Select * From TableName
Where DateAdd("m",6,[service date]) < Date()
--
Please respond to the group if your question been answered or not, so other
can refer to it.
Thank you and Good luck
Crusher said:I am writing a database for a garage. I need to produce a report that shows
when a service is due, six months after a service date.
Ofer said:In the query criteria add to the sevice date 6 months and check if it's
smaller then the current date
Select * From TableName
Where DateAdd("m",6,[service date]) < Date()
--
Please respond to the group if your question been answered or not, so other
can refer to it.
Thank you and Good luck
Crusher said:I am writing a database for a garage. I need to produce a report that shows
when a service is due, six months after a service date.


Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.