Auto fill in field on Form that's opened by query?

M

meilu

This should be a pretty easy question.. I'm jot not
creative enough to see the solution.

I have 3 forms Factory, Vendor and Contact

Contact has two fields which I would like to have auto
filled. EntityType & EntityName

Contact is opened when a cmd button on Factory/Vendor is
pushed.

Obviously:
EntityType is 'Factory/Vendor'. EntityName is the Name of
the Entity.

I think it's too redundant to have to refill these fields
in when their value is obvious. Is there anyway to auto
fill these fields?

Any help would be great!
Meilu
 
J

John Vinson

I have 3 forms Factory, Vendor and Contact

Forms ARE JUST WINDOWS. I presume you have Tables behind these
forms... right? If so, the data is in the Tables... *not* the forms.
Contact has two fields which I would like to have auto
filled. EntityType & EntityName
...
I think it's too redundant to have to refill these fields
in when their value is obvious. Is there anyway to auto
fill these fields?

Obvious from... what? How do you determine the EntityType and
EntityName based on the value of a Contact? Are you storing these
fields redundantly in two tables? If so... *don't*.

You can *display* the values corresponding to a selected value, by
using a Query or by setting the control source of a textbox to

=comboboxname.Column(n)

where comboboxname is the name of a Combo Box which includes the
fields, and (n) is the zero-based subscript of the field in the
Combo's rowsource query.
 

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