Tying a combo box to other fields and navigation buttons

TigerGyrlAlly

New Member
Joined
Jun 11, 2003
Messages
18
Is there anyway to tie a combo box to the rest of the data on a form and also allow it to work with the form controls (first, back, next, last) on the form?

I have a combo box on my form which I can use to select a number, causing the remainder of my form to become populated with the corrected data. If I select a new number from the box, the data changes accordingly. The data changes when I select one of the arrow buttons on the bottom of the form as well, that is, everything except my number in the combo box.

I bound the combo box to the field that it corresponds to in the table and then I could only change the data on the form if I used the access controls at the bottom of the form which does not work for me.

Is there anyway (using properties or code) to tie my combo box to the correct field and allow the data on the form to change accordingly (including the combo box) regardless of what method is used to select a particular record?

Anyone with any suggestions please tell them to me!!!!

Thanx in Advance
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Have you experimented with the code underlying the button? For example:

Private Sub cmdNextRecord_Click()

DoCmd.GoToRecord , , acNext
me.cmbYourComboBox.Value = Whatever

End Sub

I'm just throwing that out there, I haven't actually tried it with any data.
 
Upvote 0
I thought about doing something like that, but I didn't add any buttons to the form. There are just those that access automatically puts onto the forms
 
Upvote 0

Forum statistics

Threads
1,221,674
Messages
6,161,215
Members
451,691
Latest member
fjaimes042510

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top