Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 1st, 2007, 08:44 AM
Friend of Wrox
 
Join Date: Jan 2007
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to scandalous Send a message via MSN to scandalous
Default Autonumbering again.....

hmmm something interesting has happened when I added the Autonumber to every table.

Vendor Table
MFGID-PK
Company name
Etc

Parts Table
PartsID-PK
MFGID-FK
etc

When I enterd the parts in I did so through the subtable in the Vendor Table.

Now when I go to Parts it is showing the Autonumber associated with the MFG Table rather than populating the Company Name.

I looked at the properties and they seem fine.

Is there something I am Missing?

 
Old February 1st, 2007, 08:51 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Yes, you need to go to table design view, and then click on the look up tab for that field, and add the field you want to be displayed to the query. Then set the column count to the new number of fields, set the bound column to 1 (if that is the PK) and then set the column widths to display the proper widths for each field.

So if you have to columns in your look up, and the first field is the PK, so this:

Select the pk field, and the meaningful field in the query designer, then sort ascending on the meaningful field.

Column Count: 2
Bound Column: 1
Column Widths: 0";2"

Did that help? This is only a problem because you modified the tables after you established the look ups.

mmcdonal
 
Old February 1st, 2007, 10:09 AM
Friend of Wrox
 
Join Date: Jan 2007
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to scandalous Send a message via MSN to scandalous
Default

Awesome! You really know your stuff, Thanks alot =) It worked now all I need to to is go through all the tables and do it.








Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoNumbering scandalous Access 6 January 31st, 2007 06:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.