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!

Simple question about combo box

Status
Not open for further replies.

djmurphy58

Technical User
Feb 28, 2003
73
US
I'm a beginner Access user who is having some troubles with using a combo box. Here's the deal:

I have a table of cost codes. Each cost code has a series of attributes. I have created a form with a field for cost code. I want this field to be a combo box so that I can simply select the cost code from my tblCostCodes. When I do this though, the cost code I select gets add to my tblCostCodes. Say for example I select cost code "1510.01" from my tblCostCodes. The combo box will select it, but it will also add a new cost code "1510.01" to my table.....so now I have duplicate cost codes. Why does it do this?

Thanks
 
Hi

Is the form which contains the combo box is bound to the table of costcentres ?

Is there any code in teh after update event of the form

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Ken
Probably a stupid question, but: how do I tell if the form which contains the combo box is bound to the table of Cost Codes?

No, there is no code in the "After Update" event.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top