JR,
Well, that's a bit different. My code (placed in the form's module) will only clear
the field upon entry into that control.
How is the value being put there on a new record. Is it a Default Value? (either on
the form, or defined in the table)
Is that control bound or unbound to a table field? What is the ControlSource?
If you open a new record and there is a value already in a field, it would most
probably one of the two reasons above.
--
hth
Al Campagna . Candia Computer Consulting . Candia, NH USA
Microsoft Access MVP
http://home.comcast.net/~cccsolutions
"Find a job that you love, and you'll never work a day in your life."
You are correct that the previous contents are selected and typing anything
replaces that entry. My purpose is simply to open that next form with an
empty data entry screen.
I entered the code into a "code" window for the event "on Enter" and saved
changes. However the action remains the same. Upon advancing to teh next
form, the previous entry into the field still remains. What did I most likely
miss in executing this code?
Thanks again
:
JR,
I question why your doing this, but...
You would use the OnEnter event to set the value of the field to Null. (must not
be
a
Required field)
Private Sub YourField_Enter()
YourField = Null
End Sub.
But, if you had navigated to this field using the tab key (the proper way) then
the
previous entry value would be highlighted, and just typing the new value would
overwrite
the previous entry automatically.
--
hth
Al Campagna . Candia Computer Consulting . Candia, NH USA
Microsoft Access MVP
http://home.comcast.net/~cccsolutions
"Find a job that you love, and you'll never work a day in your life."
I need to clear the contents of a form field upon entry of that field. I know
I want to use a event procedure and have it execute "on entry", understand
that part. What must I enter into this procedure to get access to clear or
'throw out' what it remembers from the previous entry.
Thanks