G
Guest
I am doing dataentry and have to repeat into each record the same date and
would like the date of the record above to be repeated
would like the date of the record above to be repeated
I am doing dataentry and have to repeat into each record the same date and
would like the date of the record above to be repeated
fredg said:I am doing dataentry and have to repeat into each record the same date and
would like the date of the record above to be repeated
If the field is a Date datatype, code that control's Afte4rUpdate
event:
Me![DateField].DefaultValue = "#" & Me![DateField] & "#"
If the field is NOT a Date datatype, then you can use:
Me![ControlName].DefaultValue = """" & Me![ControlName] & """"
You'll have to enter the value just once per session.
It will remain the same until changed.
Dennis said:Thanks but forgive me for being thick, but this is for new users.
I entered into my [DatePaid] textbox formatted to short date in the
afterupdate on property
=Me![DatePaid].DefaultValue = "#" & Me![DatePaid] & "#"
but nothing happened. except
The expression After Update you entered as an event property setting
produced the following errer: the object doesn't contain the Automation
object 'Me.'.
I tried the other expression also be with similar results. Can you try
again
please.
fredg said:I am doing dataentry and have to repeat into each record the same date
and
would like the date of the record above to be repeated
If the field is a Date datatype, code that control's Afte4rUpdate
event:
Me![DateField].DefaultValue = "#" & Me![DateField] & "#"
If the field is NOT a Date datatype, then you can use:
Me![ControlName].DefaultValue = """" & Me![ControlName] & """"
You'll have to enter the value just once per session.
It will remain the same until changed.
Thanks that worked - but the date format comes out usa style. The first entry
(off the pop up calendar) is NZ style ie 24/12/07 but repeats come out
12/24/07.
Database and O/S Regional are set to NZ
Thanks but forgive me for being thick, but this is for new users.
I entered into my [DatePaid] textbox formatted to short date in the
afterupdate on property
=Me![DatePaid].DefaultValue = "#" & Me![DatePaid] & "#"
but nothing happened. except
The expression After Update you entered as an event property setting
produced the following errer: the object doesn't contain the Automation
object 'Me.'.
I tried the other expression also be with similar results. Can you try again
please.
fredg said:I am doing dataentry and have to repeat into each record the same date and
would like the date of the record above to be repeated
If the field is a Date datatype, code that control's Afte4rUpdate
event:
Me![DateField].DefaultValue = "#" & Me![DateField] & "#"
If the field is NOT a Date datatype, then you can use:
Me![ControlName].DefaultValue = """" & Me![ControlName] & """"
You'll have to enter the value just once per session.
It will remain the same until changed.
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.