thanks for the reply but I don't think it is quite what I am looking for.
The combo box is on the menu and I want to use it to go to a record on a
different form that hasn't been opened yet (I am using the after update event
in the combo box to open the form).
Hoping that makes sense.
> thanks for the reply but I don't think it is quite what I am looking
> for.
[quoted text clipped - 4 lines]
>
> Hoping that makes sense.
The command button wizard has an option for opening a form showing records
related to the record on the current form. All you need to do is take that code
and use it in the AfterUpdate event of your ComboBox. Essentially you use the
OpenForm method a supply a WHERE argument that pre-filters the form being
opened.
DoCmd.OpenForm "FormName",,,"SomeField = '" & Me.ComboBoxName & "'"
If your ComboBox value is numeric eliminate the single quotes.

Signature
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
scubadiver - 22 May 2007 14:07 GMT
thanks.
> > thanks for the reply but I don't think it is quite what I am looking
> > for.
[quoted text clipped - 14 lines]
>
> If your ComboBox value is numeric eliminate the single quotes.