Record select using a combo box

M

MeSteve

I have a form that uses a combo box to select the record displayed. When the
form is opened, the first record is displayed, but the combo box is empty.
Is there a way to populate the combo box to match the record displayed upon
opening the form?
 
K

Klatuu

In the form Load event:

Me.MyCombo = Me.SomeControl

SomeControl would be the control bound to the field you want to match on.
 
M

MeSteve

Works great. What event would fire on record change, such as selecting a new
record via scroll wheel?
 
K

Klatuu

The Form Current event fires on each record change including the first. If
you want to sync your combo on every record, take it out of the Load event
and move it to the Current event.
 

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