Default Fields

  • Thread starter Thread starter HARI TJAHJO
  • Start date Start date
H

HARI TJAHJO

I have a problem here, please help me ....
i have a form which enter some data. when i enter date (i.e : doc date =
01/08/2003) i want that date is still showing in next new record, not
cleared.
 
HARI said:
I have a problem here, please help me ....
i have a form which enter some data. when i enter date (i.e : doc
date = 01/08/2003) i want that date is still showing in next new
record, not cleared.

Put the following code in the After Update event of the text box
control where you want the data repeated:

Private Sub txtName_AfterUpdate()

Me![txtName].DefaultValue = """" & Me![txtName].Value & """"

End Sub

where 'txtName' is the name of your text box control. There are four
double-quote marks at each end!

hth

Hugh
 
Back
Top