Calendar To Stay at Last Date Entered

B

Bill

I have a calendar in a form. We do data entry for information that could
have occurred today, yesterday, or a couple of days ago, like over a weekend.
The form always goes back to todays date. How do I get the calendar to stay
at the last date entered?
 
R

ruralguy via AccessMonster.com

Somehow you will need to record the last date entered in a table somewhere.
I use a system table for such items.
 
B

Bill

I tried to add code to go to table, but it doesn't pull the last date. It
pulls a date two months ago. The code I wrote is:
Me!calsetdate.value = dlast("[INDEX_DATE]", "tblPROD_DATA")

The field is INDEX_NO
The table is tblPROD_DATA

I have this code once the form opens. Shouldn't it pull the last date in
the table?
 
R

ruralguy via AccessMonster.com

If it is the newest date then use DMax().
I tried to add code to go to table, but it doesn't pull the last date. It
pulls a date two months ago. The code I wrote is:
Me!calsetdate.value = dlast("[INDEX_DATE]", "tblPROD_DATA")

The field is INDEX_NO
The table is tblPROD_DATA

I have this code once the form opens. Shouldn't it pull the last date in
the table?
Somehow you will need to record the last date entered in a table somewhere.
I use a system table for such items.
[quoted text clipped - 3 lines]
 

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

Top