A Small Form Question

T

Tom

I know this is simple, but I just can't seem to make it
work.

I have two forms. On the first form there is a combo box
with a list of names. Once a name is chosen there is a
button to press which opens form 2. What I need is a
different combo box on the second from, that reads from
the same table of names, to default to the name selected
on the first form. I've tried using the standard [forms]!
[form1]![combo1] in the default value option of the second
combo box but it just comes up with no default value on
the second form.

Any suggestions would be greatly appreciated.
 
M

Mike Painter

Tom said:
I know this is simple, but I just can't seem to make it
work.

I have two forms. On the first form there is a combo box
with a list of names. Once a name is chosen there is a
button to press which opens form 2. What I need is a
different combo box on the second from, that reads from
the same table of names, to default to the name selected
on the first form. I've tried using the standard [forms]!
[form1]![combo1] in the default value option of the second
combo box but it just comes up with no default value on
the second form.

Any suggestions would be greatly appreciated.
Making form 2 a subform would be the easiest way and there would be no
button needed.
Using the openargs part of docmd.openform would be another way.
Opening the form based on a query with forms!form1!combobox would be another
way.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top