Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clear content method

Status
Not open for further replies.

roaml

Technical User
Feb 19, 2002
264
US
Hello,

I’m sure this is really simple question for you experts.

What is the method used to clear content in a form? I have a dialog form with begin and an end date. I would like for the dates to clear from the text fields when closed. Currently, the last dates entered appear when I launch the dialog form.

Thanks.
 
After you have done what you need to do with the values in the text fields, reset the value of the text fields to null.

TextField1 = null
TextField2 = null
 
Hi lynchg,

How would I apply this is unbound fields? The name of my fields are "Begin Date" and "End Date". Can I use the name of the fields?

Thank you.
 
I wouldn't have spaces in the name of a textbox on a form, but all you have to do is say:

Me!Begin Date = null
Me!End Date = null

Put this code in where appropriate and the fields will be blank when you go to use them again.
 
Thanks again Lynchg for your help.

In your opinion, what event is best used to place the code, "On Open" or "On Close"?

Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top