A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Creating a Database and having problems



 
 
Thread Tools Display Modes
  #1  
Old March 2nd, 2005, 11:53 PM
Jesica
external usenet poster
 
Posts: n/a
Default Creating a Database and having problems

I have created a vendor database. It's basic, with the exception that I need
a field that allows me to choose more than one possible category and to
record this information in a table. I know this is possible, I just don't
know how to "program" it and it's driving me crazy.

example: Vendor: Joe's Glass
Category: Glass Repair
Window Replacement

Please help.
Thanks.
  #2  
Old March 3rd, 2005, 01:47 AM
John Vinson
external usenet poster
 
Posts: n/a
Default

On Wed, 2 Mar 2005 14:53:02 -0800, Jesica
wrote:

I have created a vendor database. It's basic, with the exception that I need
a field that allows me to choose more than one possible category and to
record this information in a table. I know this is possible, I just don't
know how to "program" it and it's driving me crazy.

example: Vendor: Joe's Glass
Category: Glass Repair
Window Replacement

Please help.
Thanks.


You need *three* tables to do this: Vendors; Categories; and
VendorCategories. The VendorCategories table would have the unique
VendorID as one field (don't use the vendor name, you can't be sure
it's unique) and the category as the other; if a vendor is in eight
categories, this table will have eight records for that vendor.

A Form based on Vendors with a Subform based on VendorCategories, with
a combo box on it bound to the Categories table, is a convenient way
to enter data into this structure.

John W. Vinson[MVP]
  #3  
Old March 4th, 2005, 02:01 PM
Jamie Collins
external usenet poster
 
Posts: n/a
Default

John Vinson wrote:
On Wed, 2 Mar 2005 14:53:02 -0800, Jesica
wrote:

I have created a vendor database. It's basic, with the exception

that I need
a field that allows me to choose more than one possible category

example: Vendor: Joe's Glass
Category: Glass Repair
Window Replacement


You need *three* tables to do this: Vendors; Categories; and
VendorCategories.


Do a google search for "Standard Industrial Classification" or "SIC
codes".

My quick search turned up the following:

1793-03 Glass-Repairing
1751-05 Window Replacement

Next, find out the number of SIC codes a business may be assigned. If
the answer is small (say, four), it may be better to model as a fixed
number of attributes columns in your Vendors table.

It always pays to do research g.

Jamie.

--

 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:19 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.