Adding months to a date in access based on a number in another field -
i have database of documents "last reviewed" date field, field has number states how many months until document expires (6, 12, 18, 24) display document expire each month based on review dates x months till expire.
for example if 3 documents have date of 28/03/2017 , 6 month review box on menu states 3 documents need reviewed in september.
any great, in advance
first find future month check, calculate expire date documents, , compare these.
then can use dcount in expression textbox counting documents:
=dcount("*","yourtable","datediff('m',dateadd('m'," & [yourmonthsforwardtextbox] & ", date()),dateadd('m',[expires],[last reviewed]))=0")
Comments
Post a Comment