Combo Box Question/Problem

D

David W

I have got an unbound combobox that has a recordsource of a field in a
table, when you select a name from the combobox, it stores that name in a
textbox when you click on a save button. That does fine!

Problem
When I open the form and edit an existing record, I am trying to to put the
name into that Combo Box for display purposes only by code and I get an
error stating that its not the right value for the control.
Both fields from the different tables are set to text for the field
properties.
There is no formating in place on either boxes.

code example
to populate the textbox
me.textbox1 = me.combo1

to populate the combo box
me.combo1 = me.textbox1

Reversed order from which the textbox was populated.

Whats going on?
David W
 
M

Mark A. Sam

Just a thought... Try placing the code in the Current Event of the form.

God Bless,

Mark A. Sam
 

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