I have two tables, contacts & billing. In billing, I have Name & CustID
linked thru Lookups. I thought when CustID is chosen as 3, the corresponding
value for Name should appear on its own. Am I wrong or is there any other way
of doing it? Thanks
If you mean you have a Lookup field defined on a table column, then stop right there and remove it - it's a bad, bad
design practice, since users should NEVER see your tables directly. The only positive thing about a lookup field is it
saves about10 seconds when adding a combo to your form.
http://www.mvps.org/access/lookupfields.htm
http://www.mvps.org/access/tencommandments.htm
That said, if you insist on using lookups, then you'd need to adjust the .ColumnWidths to show the correct value ... for
example, if your SQL is this:
SELECT CustID, CustName FROM tCustomers
And you did NOT set .ColumnWidths, the combo would show the CustID (the first field) ... if you set your .ColumnWidths
to 0;1, then Access will show the Name (since the first column width is set to 0).
But please - do away with the lookup fields, as they will come back to bite you (and usually sooner than later).
Scott McDaniel
scott@takemeout_infotrakker.com
www.infotrakker.com