Auto Populating field based on Combo Box

J

John C

I have a combo box (ID). It has two columns (ID and Model). I want to be
able to chose the ID and have the model auto populate to another feild
(model). After a fair amount of time looking thru the site I have put this
in the code builder:

Private Sub D_AfterUpdate()
Me![Model] = Me.ID.Column(1)
End Sub

Now my problem is that the Model field will not release the value in the
feild when I go to the next record in the form. It also will not store the
value of the model field in the main table. Any help would be great. TIA
 
O

Ofer

Probably the Model field is unbound this why it not storing the value in the
table and this is why the value wont release when you move to the next
record.
Bound it to the Model field in the main table.
 
J

John C

That was it thanks Ofer

Ofer said:
Probably the Model field is unbound this why it not storing the value in the
table and this is why the value wont release when you move to the next
record.
Bound it to the Model field in the main table.

John C said:
I have a combo box (ID). It has two columns (ID and Model). I want to be
able to chose the ID and have the model auto populate to another feild
(model). After a fair amount of time looking thru the site I have put this
in the code builder:

Private Sub D_AfterUpdate()
Me![Model] = Me.ID.Column(1)
End Sub

Now my problem is that the Model field will not release the value in the
feild when I go to the next record in the form. It also will not store the
value of the model field in the main table. Any help would be great. TIA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top