delete button help

gheepok

Registered User.
Local time
Today, 08:41
Joined
Aug 29, 2010
Messages
13
i want to create a button that act as pressing the DEL key. Can someone want help i. thanks
 
To delete a record? Have you tried the button wizard?
 
yes. i have try that. the delete button wizard will delete every data in the current form.
i want a button that can delete a seleted field only.
please help.
 
Me.TextboxName = Null

or

Me.TextboxName = ""
 
yes. i have try that. the delete button wizard will delete every data in the current form.
i want a button that can delete a seleted field only. please help.

Then you want to delete the value of the field that had the focus before you clicked your delete [Clear] button. This should do it...

Code:
Application.Screen.PreviousControl = ""
 
thanks ghudson.
Application.Screen.PreviousControl = "" works.
this works on a main form only.
but how to do this in a main form button that clear a field in a subform.
please help.
 
Last edited:

Users who are viewing this thread

Back
Top Bottom