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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to update records immediatly 1

Status
Not open for further replies.

carlp69

IS-IT--Management
Sep 23, 2003
157
GB
I have a form with an option box "Frm_PayMethod" that has two option buttons. The option box has an 'OnClick' event.
The event has the following code :-
Code:
If PayMethod = 1 Then me!Status = "Pay In Full"
If PayMethod = 2 Then me!Status = "Pay SSP Only"
Me!Frm_PayMethod.SetFocus
When I click on either of the options it changes the status on the screen but has not commited the status to the table.
How can I force the table to commit the 'Status' Field immediatley when the options change?

Thanks
 
Hi Carlp69,

try the following:

Code:
If PayMethod = 1 Then me!Status = "Pay In Full"
If PayMethod = 2 Then me!Status = "Pay SSP Only"
docmd.RunCommand acCmdSaveRecord
Me!Frm_PayMethod.SetFocus

Hope it helps
Neemi
 
Can this be done in the mcro builder? I've been using the 'GoToRecord' Next function. this works great until i reach the last record on the form.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top