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

AfterUpdate Problem

Status
Not open for further replies.

IainGreen

Technical User
Jan 21, 2004
7
GB
Hi,

I have a form forHighways which lists job numbers & details for road repairs to be made. I have a combo box (cmbCategory) which the user selects a job category from a list which states whether the job is Misc., Kerb, Emergency etc...

There is also a text box (txtCostCentre) which I want to be populated by an AfterUpdate query on the above cmbCategory box. I.e. if The category selected by the user is 'Emrgency' then the Cost Centre is automatically populated with the corresponding code.

The AfterUpdate event must get the relevant Cost Centre codes from a table (tabHighways), which has 3 columns:

1. Category Code
2. Category i.e. Emergency etc...
3. Cost Centre Code

I'd be grateful for any help with the AfterUpdate code.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top