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

Keep changes of AfterUpdate

Status
Not open for further replies.

rib742

Programmer
Jun 7, 2003
28
US
Hi there.

I'm having a problem keeping the changes done with AfterUpdate when the record is saved. For instance, I have a database where the records are updated on a dily, weekly, monthly basis but the changes do not hold.

Example: If a certain checkbox is valued, then other fields are to be disabled/locked. While in the record when the update is made, everyhting looks good and works. However, when the record is saved and then reopened, those changes are not held.

This is my code:
Private Sub Contract_Not_Referred_for_Pre_Sig_AfterUpdate()
If Contract_Not_Referred_for_Pre_Sig = True Then Post_Load_Review_Only_Contract.Enabled = False And Post_Load_Review_Only_Contract.Locked = True
End Sub

Any help would be greatly appreciated.



 
I figured it out. I had to code the OnCurrent to show the changes and keep my enables and locks.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top