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

Update a field based on another field change 1

Status
Not open for further replies.

OrbeaRider66

Programmer
Dec 13, 2007
6
US
Okay, I'm really stuck here. I'm new to using VBA but am familiar with how it all works. My problem is that I just can't seem to figure out how to make everything work and, until I can get some sort of VBA training, I really need help.

I have a table (tblIncident) with two fields: status and closed_by. I'm trying to use VBA to set closed_by to "Trent" whenever status changes to 2. I've searched all over the internet for help on how to do this but nothing I've found works.

Any suggestions? I'd appreciate any help I can get.

Thanks!
 
On the "AfterUpdate" of whatever control you use to enter the status change, add code to make the change.

Ex:

If status=2 then
closed_by="Trent" (or whatever control/list/query)
MsgBox("Closed_By has been updated.")
else
endif
 
BD ... thank you so much. That was exactly what I was looking for. I really appreciate your help and I can move forward with this again!

JT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top