Textbox population issues in a form

SteveBreslin

Board Regular
Joined
Jul 23, 2012
Messages
104
Hi

Hope someone can help me, i have an Access form which has two Comboboxes on it and 4 Textboxes.

Combobox one looks up its values from a table for selection which works fine
Combobox two values are a result of a query based on the selection in combobox one this works fine.

Textbox one auto populates from the selction made in combobox two this works fine.

I cant get the other three textboxes to populate.

I am using a code in the event proceedure to update textbox one see below

Private Sub ChangeoverNumberCombo_Change()
Me.TargetTimetxt.Value = Me.ChangeoverNumberCombo.Column(1)
End Sub

Any advice

Many thanks
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
I would use the After Update event:

Code:
Private Sub ChangeoverNumberCombo_[FONT=Courier][SIZE=2]AfterUpdate[/SIZE][/FONT]()
   ' Test to be sure there was a selection made in the combo box
   If Not IsNull(Me.ChangeoverNumberCombo) Then
          Me.TargetTimetxt = Me.ChangeoverNumberCombo.Column(1)
   End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,213,527
Messages
6,114,150
Members
448,552
Latest member
WORKINGWITHNOLEADER

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