Desperate Help Required!!!!

ahson88

Registered User.
Local time
Today, 18:46
Joined
Feb 16, 2003
Messages
20
I need to make a button in a form which allows you to delete the record. what expression shall i use?? i am using access 2000. any help??
 
sing along...

All together now: "We're off to see the Wizard..."
 
i have tried that but it doesnt seem 2 work..
 
The Control Wizard will build this for you when you create a button. Be sure to have the Control Wizard selected when making the Command Button Control. It looks like a wand with pixie dust on the left side of the tool bar. Follow the wizard through.
 
It will generate code that looks like this:

Code:
Private Sub Command42_Click()
On Error GoTo Err_Command42_Click


    DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
    DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70

Exit_Command42_Click:
    Exit Sub

Err_Command42_Click:
    MsgBox Err.Description
    Resume Exit_Command42_Click
    
End Sub
 

Users who are viewing this thread

Back
Top Bottom