delete button help (1 Viewer)

gheepok

Registered User.
Local time
Today, 12:42
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
 

pbaldy

Wino Moderator
Staff member
Local time
Yesterday, 21:42
Joined
Aug 30, 2003
Messages
34,053
To delete a record? Have you tried the button wizard?
 

gheepok

Registered User.
Local time
Today, 12:42
Joined
Aug 29, 2010
Messages
13
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.
 

pbaldy

Wino Moderator
Staff member
Local time
Yesterday, 21:42
Joined
Aug 30, 2003
Messages
34,053
Me.TextboxName = Null

or

Me.TextboxName = ""
 

ghudson

Registered User.
Local time
Today, 00:42
Joined
Jun 8, 2002
Messages
6,199
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 = ""
 

gheepok

Registered User.
Local time
Today, 12:42
Joined
Aug 29, 2010
Messages
13
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 (Users: 0, Guests: 1)

Top Bottom