[FONT="]I have a combo box on a form that has the model of the product.[/FONT]
[FONT="]I want when I select the type of model on the combo box to fill automatically the text boxes on my form with the quantities of the accessories for this model.[/FONT]
[FONT="]For example… I select model A on the combo box I want to be displayed in the text boxes below that battery is 1, cables are 2..etc[/FONT]
[FONT="]
I have so far a table that combo box uses with the type model and the accessories.[/FONT]
[FONT="]
[/FONT]
[FONT="]Build like this: [/FONT]
[FONT="]Model[/FONT][FONT="] .. CABLES[/FONT][FONT="] ..BATERRIES [/FONT][FONT="]..MANUAL[/FONT]
[FONT="]...A[/FONT][FONT="] ..............2[/FONT][FONT="] .................1[/FONT][FONT="] ....................1[/FONT]
[FONT="]...B[/FONT][FONT="] ..............1[/FONT][FONT="] .................1[/FONT][FONT="] ....................1[/FONT]
[FONT="]...C[/FONT][FONT="] ..............1[/FONT][FONT="] .................0[/FONT][FONT="] ....................1[/FONT]
[FONT="]And in the after update event of the combo box I have entered:[/FONT]
[FONT="] Private Sub MODEL_AfterUpdate()[/FONT]
[FONT="]Me.cables = Me!MODEL.Column(1)[/FONT]
[FONT="]Me.batteries = Me!MODEL.Column(2)[/FONT]
[FONT="] Me.manual = Me!MODEL.Column(3)[/FONT]
[FONT="] End Sub[/FONT]
[FONT="]But nothing happens…[/FONT]
[FONT="]I would most appreciate some help[/FONT]
[FONT="]I want when I select the type of model on the combo box to fill automatically the text boxes on my form with the quantities of the accessories for this model.[/FONT]
[FONT="]For example… I select model A on the combo box I want to be displayed in the text boxes below that battery is 1, cables are 2..etc[/FONT]
[FONT="]
I have so far a table that combo box uses with the type model and the accessories.[/FONT]
[FONT="]
[/FONT]
[FONT="]Build like this: [/FONT]
[FONT="]Model[/FONT][FONT="] .. CABLES[/FONT][FONT="] ..BATERRIES [/FONT][FONT="]..MANUAL[/FONT]
[FONT="]...A[/FONT][FONT="] ..............2[/FONT][FONT="] .................1[/FONT][FONT="] ....................1[/FONT]
[FONT="]...B[/FONT][FONT="] ..............1[/FONT][FONT="] .................1[/FONT][FONT="] ....................1[/FONT]
[FONT="]...C[/FONT][FONT="] ..............1[/FONT][FONT="] .................0[/FONT][FONT="] ....................1[/FONT]
[FONT="]And in the after update event of the combo box I have entered:[/FONT]
[FONT="] Private Sub MODEL_AfterUpdate()[/FONT]
[FONT="]Me.cables = Me!MODEL.Column(1)[/FONT]
[FONT="]Me.batteries = Me!MODEL.Column(2)[/FONT]
[FONT="] Me.manual = Me!MODEL.Column(3)[/FONT]
[FONT="] End Sub[/FONT]
[FONT="]But nothing happens…[/FONT]
[FONT="]I would most appreciate some help[/FONT]