Command Buttons

Jenny1

Registered User.
Local time
Today, 14:30
Joined
May 3, 2007
Messages
61
How do I make the command buttons on my form actually do something, the only one that attempts to work is "DELETE RECORD" the others dont do anything at all
 
make sure there is an action in the onclick procedure
 
Thanks, add record works fine and so does delete record,

BUT

Undo records will not do anything, any ideas on this, I thought the purpose of this button was to remove data from the form if you decided to start again?

Also with regards to save - How can you tell that it has saved?

Is there anyway you can make a pop up box appear which says "record added" or " record saved"

Finally

The find record button works but it will only looks in one table, what If I want it to look in the main form and the subforms, I dont have to create a seperate find record for each subform do I?


Please advise
 
for undo i think its
docmd.runcommand acundo something like that and yes.

regards to message boxs in the onclick put
Msgbox "Record saved", vbokonly
same for the added

the subform should be linked to the mainform somehow. so when the record is seleceted in the mainform the subform should follow suit
 
If you build the buttons with the control wizard enabled, it will put in event code to "do the right thing" for anything that a button wizard supports.
 
If you build the buttons with the control wizard enabled, it will put in event code to "do the right thing" for anything that a button wizard supports.

When you say with the control wizards enabled what do u mean, I am using the control wizard?
 
regards to message boxs in the onclick put
Msgbox "Record saved", vbokonly
same for the added

I am really sorry But I dont understand what you mean bythis, when I click on events, the onclick ... links to a coding page, where should I put the code that you said above?
 
In the code of the onclick
Code:
Docmd.RunCommand acCmdSaveRecord
MsgBox "Record Saved", vbokonly
 

Users who are viewing this thread

Back
Top Bottom