G
Guest
Hey there,
I am currently using an append query based on an equipment table to add
orders to a Service log based on date- I basically enter the date that I am
searching for in the query, and it adds all of the information (ServiceDate,
Serial No., etc) into my Service Log. My dilemma is that I need to be able to
update the dates in the equipment table based on a frequency ( which is a
field in the table) automatically after the equipment has been serviced. I'm
currently doing this manually- if the frequency is annual, then I type in the
date a year from now into the NextServiceDate field. I know I can use a
DateAdd function, but I don't know how to accomodate for different
frequencies (annual, semi-annual, bimonthly, etc. ) in the query criterion.
Am I even using the right kind of query for this purpose? And, what kind of
expression can I use to change the dates on specific frequencies? I don't
know what to put in the Frequency field or the NextServiceDate field, or if
it will automatically update the LastServiceDate field. Any help is greatly
appreciated.
I am currently using an append query based on an equipment table to add
orders to a Service log based on date- I basically enter the date that I am
searching for in the query, and it adds all of the information (ServiceDate,
Serial No., etc) into my Service Log. My dilemma is that I need to be able to
update the dates in the equipment table based on a frequency ( which is a
field in the table) automatically after the equipment has been serviced. I'm
currently doing this manually- if the frequency is annual, then I type in the
date a year from now into the NextServiceDate field. I know I can use a
DateAdd function, but I don't know how to accomodate for different
frequencies (annual, semi-annual, bimonthly, etc. ) in the query criterion.
Am I even using the right kind of query for this purpose? And, what kind of
expression can I use to change the dates on specific frequencies? I don't
know what to put in the Frequency field or the NextServiceDate field, or if
it will automatically update the LastServiceDate field. Any help is greatly
appreciated.