autofill Form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to autofill to rows in my form. When the dataentry person enters
in the EIN of a company I want the company name to automatically appear. I
am not for sure how to do that, can someone help??? There are about 400
companies.

Thanks for the help.
 
I am trying to autofill to rows in my form. When the dataentry person enters
in the EIN of a company I want the company name to automatically appear. I
am not for sure how to do that, can someone help??? There are about 400
companies.

Thanks for the help.

The simplest way is to have the user SELECT - not enter, though they
can type it to have the combo autofill- the EIN using a Combo Box. If
the CompanyName field is included in the combo box, you can set the
control source of a textbox on the form to

=comboboxname.Column(1)

to display the second (it's zero based) field in the combo's
recordsource.

You should NOT be storing the company name in your form's table - only
in the 400-row company table. It's redundant, and you can always use a
combo box or query to look it up.


John W. Vinson[MVP]
 
Thanks, I'll try that.

John Vinson said:
The simplest way is to have the user SELECT - not enter, though they
can type it to have the combo autofill- the EIN using a Combo Box. If
the CompanyName field is included in the combo box, you can set the
control source of a textbox on the form to

=comboboxname.Column(1)

to display the second (it's zero based) field in the combo's
recordsource.

You should NOT be storing the company name in your form's table - only
in the 400-row company table. It's redundant, and you can always use a
combo box or query to look it up.


John W. Vinson[MVP]
 

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

Back
Top