Default to time???

B

Bill

Hi,,

I have a table with a default value =time$.

Problem is when I enter a new record the time value of the NEXT record
defaults to the time when that previous record is entered. Thus if there is
an entry some minutes or so later the value for that entry is wrong!!

Any thought on what I am doing wrong please??

Ta.
Bill
 
R

Rick Brandt

Bill said:
Hi,,

I have a table with a default value =time$.

Problem is when I enter a new record the time value of the NEXT record
defaults to the time when that previous record is entered. Thus if
there is an entry some minutes or so later the value for that entry
is wrong!!
Any thought on what I am doing wrong please??

Ta.
Bill

That's how defaults work. They are populated the instant the "New" row is
painted on the screen.

Use a form (never use a table as an interface) and populate the field in the
BeforeUpdate event instead of using a default.

If Me.NewRecord Then Me!FieldName = Now()
 
B

Bill

Thanks.

FYI, I am using a form but the default is in the table. I understand what
you have suggested though and will do.

Thanks again.
Bill
 

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