Brackets Galore

Swamp Thing

Active Member
Joined
Aug 16, 2002
Messages
313
I have a combobox in a form. I also have a textbox that shows the first element in the combobox's list, i.e.

=[Combo1].[Column](0,0)

What happens is that each time I switch from design to form view and back to design, I see one more pair of brackets around the zeros, so that I soon end up with:

...[Column]((((((0,0))))))

Not that it affects the operation, but it makes one wonder.. what is happening?
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Haven't seen that before but do you really need the Column (0,0)? I've only ever used =Combo1.Column(0) to get the first column -- in fact, if yo want the first column, you only need =Combo1 because field 0 is the default bound column.
Dunno if I've missed something here...

Denis
 
Upvote 0
If we use only one zero in the brackets then what we get is the currently selected row. What I wanted to reference was the top row, irrespective of selection. The idea was to make sure that the combobox would start up with the top item instead of Null, by setting the combo's default value to its own top value:

Combo1.Column(0,0) ==> Combo1's Default Value

This had the desired effect, but the brackets would increase when entering design mode as I described.
To understand this phenomenon, I tried putting the formula into a separate textbox's Value property, and the same result was observed.
 
Upvote 0

Forum statistics

Threads
1,221,575
Messages
6,160,603
Members
451,657
Latest member
Ang24

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