Hello,
I am working on a database for a rental agency and need to increment a 'Balance' text box(unbounded)field with the rental amount(say $300.00) on the 15th of each month. In pseudocode it would be something like:
balance.setfocus
if system date = XX/15/XXXX and date isbetween (lease dates) then
balance = balance + rent
endif
Can anyone help me with the VBA for this function?
I assume that the database must be open for the function to run, but can I schedule a windows task to open and then close the database at say 6:00 am on the morning of the 15th?
Thanks!
I am working on a database for a rental agency and need to increment a 'Balance' text box(unbounded)field with the rental amount(say $300.00) on the 15th of each month. In pseudocode it would be something like:
balance.setfocus
if system date = XX/15/XXXX and date isbetween (lease dates) then
balance = balance + rent
endif
Can anyone help me with the VBA for this function?
I assume that the database must be open for the function to run, but can I schedule a windows task to open and then close the database at say 6:00 am on the morning of the 15th?
Thanks!