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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -