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!

simpely tell me why can't use command button?

Status
Not open for further replies.

airbase

Technical User
Jan 30, 2002
21
CN
in the access 2000 form, when i use the command wizard to make delete button, but it doesn't work. does anybody can tell me why?
How can i do 'delete' in the simple way?
with thanks


 
Is your custome delete button on a main form and the record to be delete on a subform? If so you will need to set the focus to the subform first. Then delete.

SubformName.SetFocus

DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
prodevmg@yahoo.com
ProDev, MS Access Applications B-)
May God bless you in the year 2002.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top