Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 11th, 2007, 04:15 PM
Registered User
Join Date: Dec 2007
Location: Saint Augustine, FL, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Multiple Values In One Field

I have a business database. I have it in access. At this point it is a flat database. It has business name, address, phone and Category.

I created a few tables.
MainCat: Let say a value in this would be Retail.
SubCats: Let say a value in this would be Stores.
Cat: Let say a value in this would be Pet Stores.

They are all linked by lookup fields.

I have a few questions:
1. My category field in my database might look like this:
Joes Pet Shop
12 Some ST
Somepalce, UT, 12345
Pet Store, Animal Feed Store, Pet Supplies, Stores

So basically I was thinking of converting the Alpha cats to the numeric equivalent in the tables to do a lookup instead of storing all the values in the table.

Can this be done and how?

Thanks in advance for your help
Reply With Quote
  #2 (permalink)  
Old December 12th, 2007, 08:59 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts

I am not sure what you are asking here. What is the relationship between the tables currently? If one store is capable of having more than one type, then you will want a junction table between your category tables and your business table. Currently this is not flat.



BusinessID - FK
CategoryID - FK

This will allow you to have n number of associations between your business and category structure. Then you reporting can show the categories associated with each business as needed.

Is this what you were talking about?


Look it up at: http://wrox.books24x7.com
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
find multiple values from a table field raaj Beginning PHP 0 September 17th, 2007 03:51 AM
multiple values insert into one field mateenmohd Classic ASP Basics 0 May 29th, 2007 02:11 AM
get the values of form field values crmpicco Perl 2 March 16th, 2007 10:57 AM
Adding multiple form field values to database cdenequolo Classic ASP Basics 1 August 17th, 2004 05:38 PM
multiple values in an access field katie456 Access 11 October 23rd, 2003 08:36 AM

All times are GMT -4. The time now is 10:07 PM.

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