View Single Post
  #4  
Old March 13th, 2010, 06:19 PM posted to microsoft.public.access.tablesdbdesign
Steve[_77_]
external usenet poster
 
Posts: 1,017
Default Items table help

You need Item, Size and Type tables:
TblType
TypeID
Type

TblSize
SizeID
Size (text)
SortOrder (1 to whatever)

TblItem
ItemID
Item

Then you need a table that lists the type and size of each item....

TblItemSizeType
ItemSizeTypeID
ItemID
SizeID
TypeID

To get the sort you want, you need a query that includes all the above
tables. Include the fields in your query:
Item from TblItem
Size from TblSize
SortOrder from TblSize
Type From TblType

In the query set ....
sort for Item as Accending;
sort for SortOrder Ascending
sort for Type Descending

If you need help with your database, I can help you get up and running
quickly. I provide help with Access, Excel and Word applications for a small
fee. Contact me if you want my help.

Steve


"Rob H" wrote in message
...
I have a photography business that I am setting up a database for
tracking
sales by customer, item, demographics etc. I'd like some advise on the
items
table, I have over a hundred photographs that I currently offer for sale
and
each photograph is offered in various sizes as well as being a print only,
matted or matted and framed. This is going to make the items table quite
extensive.
This is an example of what I have right now:

Item Size Type
Moulton Barn 12x24 Print
Moulton Barn 12x24 Matted
Moulton Barn 12x24 Framed
Moulton barn 16x31 Print
Moulton Barn 16x31 Matted
Moulton Barn 16x31 Framed
Dewy Dragonfly 11x14 Print
Dewy Dragonfly 11x14 Matted
Dewy Dragonfly 11x14 Framed

and so on;

So, each "Item" can have 6-12 "options" (ie: size, print or size, framed
etc) x 100 photographs the list will be quite long.

What's happening is; when I sort by ItemAscending, the photos are listed
alphabetically but the size and type become scrambled as such;

Dewy Dragonfly 11x14 Framed
Dewy Dragonfly 11x14 Print
Dewy Dragonfly 11x14 Matted
Moulton Barn 12x24 Print
Moulton Barn 16x31 Matted

I want the list to maintain the order of Item alphabetically, then Item
size and finally Item Type in the order of Print, Matted or Framed. The
obvious is to re-create the Items table and enter the items in the order I
need but once done and I later add a new image I'm back to square one.

Ideas?

Thank You