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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cut Command In Form

Status
Not open for further replies.

Kelvin

Programmer
Apr 25, 2000
23
AU
I would like to use a Command Button located in a form
and when I click it, it will clear imformation in two Text boxes with out deleting the table.
The text boxes are located in the same form.

Please Help

regards Kelvin [sig][/sig]
 
Without deleting the table????

if no data was previously in the textbox you can use any of the following

me.textbox1 = vbNullString
me.textbox2 = vbNullString

me.textbox1 = Null
me.textbox2 = Null

me.textbox1 = ""
me.textbox2 = ""

however if you are trying to recover original information that you typed over, use:

me.textbox1 = me.textbox1.oldvalue
me.textbox2 = me.textbox2.oldvalue

PaulF [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top