Loopup Box

B

Brian T

Hello all,

I have a form that has a combo box for Project Numbers (these are text since
they are alphanumeric) and I would like to automatically fill in the Project
Name. I am using Access 2007. Any embedded macro help would be great.

Thanks,
 
J

John W. Vinson

Hello all,

I have a form that has a combo box for Project Numbers (these are text since
they are alphanumeric) and I would like to automatically fill in the Project
Name. I am using Access 2007. Any embedded macro help would be great.

Thanks,

WHERE do you want to "fill it in"? You can certainly *display* it on the form;
just include the project name in the combo box's Row Source query, set the
Column Count large enough to include it, and put a textbox with a control
source like

=comboboxname.Column(n)

where n is the zero-based index of the column containing the name.

If you want to store the project name redundantly in a table other than the
table of projects... well, don't, unless you have some VERY good reason. If
you have such a reason please explain.
 
B

Brian T

John,

I am using the form to create a report (which is a form letter) and I want
the project name to show up in the report and I can't fiugre out how to get
it in there.
 
J

John W. Vinson

John,

I am using the form to create a report (which is a form letter) and I want
the project name to show up in the report and I can't fiugre out how to get
it in there.

Base the Report, not on your table, but on a Query joining your table to the
Projects table. Include the ProjectName from the Projects table on the report.
If you're assuming that a report must be based on a table containing all the
fields to be printed, revise that assumption - the vast bulk of reports will
be based on multitable queries.
 

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