Custom Button

dalesellers

Registered User.
Local time
Yesterday, 21:59
Joined
Jan 17, 2006
Messages
17
I'm just creating my first db. When I'm on a form looking at a previous record (in this case a transaction), I need to be able to make a minor change to that record (such as the date for a repeat transaction), and then save the record as a whole new record. The button commands I found in the wizards only let me save over the current recond after an edit. Anyone know the easiest way to creaet a command button that does this? Thanks for any insights.
 
Create a button, change it's label, and then set its OnClick property to an EventProcedure and click build, the (...) to the right of the EventProcedure.

the following will be generate-

Private Sub YourButtonName_OnClick()
'your code to manipulate data goes here
end sub

The button wizard does substantially the same.

Alternatively, use the button wizard to build a subroutine, then change the code the wizard build.
 
Thanks - that did the job.
 
I thought I understood but I'm not sure what code "to munipulate data" goes into Visal Basic for this particular kind of button. Anybody have any ideas or know where I might be able to get this?
 

Users who are viewing this thread

Back
Top Bottom