Re: Auto Fill II (for Access 2002)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Tue, 30 Dec 2008 13:40:28 -0800, Brendan
<Brendan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

My questions is similar to the earlier question titled Auto Fill. I am
creating a form and would like to know if it is possible to have the text
boxes on the form auto fill. What I would like to be able to do is choose a
customers name from a combo box and have the information that is tied to that
name in several different tables populate text boxes within the same form.
The combo box is pulling information from a table titled "customers" wich
would be the table that would provide most of the information for the form,
but three other tables would have information that would need to be drawn out
as well.

Please Help!

Thanks so much,

Brendan

If you're trying to copy information from a customers table into some other
table... DON'T!!!

Access databases use the "Grandmother's Pantry Principle" - "A place - ONE
place! - for everything, everything in its place". The customer information
should exist *only* in the Customer table; all you need in (say) an Orders
table is the unique CustomerID.

If you just want to *show* the information on the form, without storing it,
you can put all the fields that you want to see in the combo box's Row Source
query. Display them on the form by putting textboxes on the form with control
sources like

=comboboxname.Column(n)

where n is the *zero based* index of the desired field (e.g. if the customer's
phone number is in the fifth column in the query use Column(4) ).
--

John W. Vinson [MVP]
.



Relevant Pages

  • Re: Strange
    ... The Text Boxes are Bound to the Customers Table and the "find" combo Boxes arte unbound. ... Public Function util_ShowInfo(frm As Form, strField As String, varInfo As Variant) As Boolean ... strCriteria = BuildCriteria ...
    (microsoft.public.access.gettingstarted)
  • Re: An incident at the grocery store
    ... The grocer has some fruit lined up in boxes along the sidewalk ... There were about a dozen customers therein ... in reply and left the store, leaving a cloud of attitude behind him. ... Free demo online at www.pmilligan.net/palm/ ...
    (rec.motorcycles)
  • Re: An incident at the grocery store
    ... The grocer has some fruit lined up in boxes along the sidewalk ... There were about a dozen customers therein ... I verbally informed the checkout clerk of the incident. ... in reply and left the store, leaving a cloud of attitude behind him. ...
    (rec.motorcycles)
  • Re: displaying two query results together
    ... I created a command button to create a billing report for all customers so ... I attached the two text boxes to a table DATESORT. ... For John Vinson: Thanks for helping with the date display issue. ... able to create a billing report for that time period or anywhere in between. ...
    (microsoft.public.access.queries)
  • Re: Text box not showing appopriate information
    ... Have you considered stacking text boxes for each value, ... > I am designing a report for our customers to show upcoming changes to ... > feeds into a report. ... but leaves unwanted white space after the last ...
    (microsoft.public.access.reports)