View Single Post
 
Old 04-17-2019, 05:06 AM
blaisjoel blaisjoel is offline Windows 7 64bit Office 2016
Novice
 
Join Date: Apr 2019
Posts: 1
blaisjoel is on a distinguished road
Default Combobox Looping

I want to be able to loop through my comboboxes using a variable (i)

This is what I have

Code:
   ElseIf ComboBox1.Value = "PICKUP" Then
        Load UnitForm
        UnitForm.Tag = 1
        UnitForm.Show
        TextBox1.Value = "8 cm high"
        TextBox2.Value = "33 cm high"
        TextBox3.Value = "7.5 cm high"
This is what I tried

Dim i as integer

ElseIf ComboBox & i.Value = "PICKUP" Then
Load UnitForm
UnitForm.Tag = 1
UnitForm.Show
TextBox1.Value = "8 cm high"
TextBox2.Value = "33 cm high"
TextBox3.Value = "7.5 cm high"

It doesn't like the variable.
Reply With Quote