Time based entry

  • Thread starter Thread starter myxmaster
  • Start date Start date
M

myxmaster

I was wondering. Is it possible to automate a table or field entry
based on time criteria.
I am creating a database where the user will have to designate a
transaction "cleared "for the balance to be reflected correctly.
Can I do this automatically to avoid human error. For example it takes
10 days from a transaction entry to clear, therfore after 10 days I
would like it to be reflected automatically if the user has not
manually made the adjustment.

TIA
 
You could try this using an update query that runs when the database is
opened, something like:

UPDATE yourtable SET yourtable.Status = "Cleared"
WHERE (((yourtable.datefield)<Date()-10) AND
((yourtable.Status)="Waiting"));

This should run and update the status of any records that have a date over
10 days old and a status of waiting.

Jon
 
if you're using queries and/or reports to do the math that returns a
"balance", just include only records where TransAction date is <Date()-10.

hth
 
EeOr said:
You could try this using an update query that runs when the database is
opened, something like:

UPDATE yourtable SET yourtable.Status = "Cleared"
WHERE (((yourtable.datefield)<Date()-10) AND
((yourtable.Status)="Waiting"));

This should run and update the status of any records that have a date over
10 days old and a status of waiting.

Jon
 

Ask a Question

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.

Ask a Question

Back
Top