Hi and thanks Rick.
When I run this code from a standard code module:
Forms(gcsFormMainMenu).Controls("cboMainDept1") = 0
It sets the value of the drop down to zero rather than the first item in the
drop down list. How can I make that work?
Thanks again.
> Hi and thanks Rick.
>
[quoted text clipped - 4 lines]
> It sets the value of the drop down to zero rather than the first item in the
> drop down list. How can I make that work?
Well, that is not what you asked for :-)
If the bound column of the ComboBox is the first one...
Forms(gcsFormMainMenu).Controls("cboMainDept1") =
Forms(gcsFormMainMenu).Controls("cboMainDept1").Column(0,0)
If the bound column is not the first column then the first zero would be changed
to 1 for the second column, 2 for the third, etc.. The second zero would not be
changed as that specifies the first row.

Signature
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
XP - 28 Jan 2007 17:16 GMT
> > Hi and thanks Rick.
> >
[quoted text clipped - 6 lines]
>
> Well, that is not what you asked for :-)
YEAH, I know; things changed as I was developing. This is sort of a follow
up...
> If the bound column of the ComboBox is the first one...
>
[quoted text clipped - 4 lines]
> to 1 for the second column, 2 for the third, etc.. The second zero would not be
> changed as that specifies the first row.
WORKS great thanks!