Link to home
Start Free TrialLog in
Avatar of kiphughes
kiphughes

asked on

Tab Control and Record Operations

Using MS Access 2000

i created a form and then place a tab in it. the tab doesn't have buttons for record operations (add, delete, etc.) and record navigation (find next, find precious, etc).

i want my tab to have this capability bec i'm going to place fields (text boxes, combo boxes) in them so that the user can modify the contents of my table.

i tried inlcuding command buttons using the wizard. i'm able to create, say, a save button in the tab -- just that it doesn't actually save anything when clicked.

any advice?
Avatar of Paurths
Paurths

hi Kiphughes,

if u have created the button using the wizard.
select the button, and open the properties window.
Scroll down until u see 'onClick'.  
Put the mouse pointer in it and click. On the right u will see a button with arrow, choose it and it should show 'Eventprocedure'. Select this. Save the form and try your actions again.

cheers
Ricky

ps: might be that the actual naming i used is a little off, since i only have a dutch version.
Avatar of kiphughes

ASKER

the wizard automatically does that for you. try stepping throught the wizard and u'll see what i mean. the code it generates is this:

Private Sub Save_Click()
On Error GoTo Err_Save_Click


    DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70

Exit_Save_Click:
    Exit Sub

Err_Save_Click:
    MsgBox Err.Description
    Resume Exit_Save_Click
   
End Sub

i don't know what it means. but whatever it is, it doesn't save me stuff.
ASKER CERTIFIED SOLUTION
Avatar of Paurths
Paurths

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial