Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old May 9th, 2008, 06:40 PM
SCUBA-guy SCUBA-guy is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 2 SCUBA-guy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 33 sec
Reputation Power: 0
Need help creating an Access Database to keep track of items.

Hope you guys don't shoot people for joining a forum to only ask one question. I just haven't been able to find the answer anywhere else.

Gonna be leaving for a year and I am putting a bunch of stuff on DVD's.

I want to create a database that will have a record for each DVD with other records for what the DVD's contents are and then another record with a description for each entry.

I want to setup the database something like this...

Disk_Label - Source - Title_1 - Title_1_description
..............................Title_2 - Title_2_description (if there is a second title)
.................................And so on.

I want the description to be linked to the title it is describing. So later I can do a search on whatever value might be in the description and have the search return the disk label and title that has that value linked to it. If that made any sense.

I have been playing around with Access and I can create a table that has a bunch of title and description fields but I can't see any way to link the description with the title.

Also want to be able to set it up so when I view the data later or print up reports, and the disk only has one title on it, it will only show that title and the description for it and not a bunch of empty fields along with it.

Little aggravating cause I used to do this kind of thing all the time but that was over 7 years ago and I have forgotten how to do all of this.

Thanks for any help you can give.

Mitch

Reply With Quote
  #2  
Old May 10th, 2008, 12:20 AM
don94403's Avatar
don94403 don94403 is offline
Contributing User
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jan 2007
Location: Northern California
Posts: 1,374 don94403 User rank is Captain (20000 - 30000 Reputation Level)don94403 User rank is Captain (20000 - 30000 Reputation Level)don94403 User rank is Captain (20000 - 30000 Reputation Level)don94403 User rank is Captain (20000 - 30000 Reputation Level)don94403 User rank is Captain (20000 - 30000 Reputation Level)don94403 User rank is Captain (20000 - 30000 Reputation Level)don94403 User rank is Captain (20000 - 30000 Reputation Level)don94403 User rank is Captain (20000 - 30000 Reputation Level)don94403 User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 12 h 25 m 20 sec
Reputation Power: 291
Quote:
Originally Posted by SCUBA-guy
Hope you guys don't shoot people for joining a forum to only ask one question. I just haven't been able to find the answer anywhere else.

Gonna be leaving for a year and I am putting a bunch of stuff on DVD's.

I want to create a database that will have a record for each DVD with other records for what the DVD's contents are and then another record with a description for each entry.

I want to setup the database something like this...

Disk_Label - Source - Title_1 - Title_1_description
..............................Title_2 - Title_2_description (if there is a second title)
.................................And so on.

I want the description to be linked to the title it is describing. So later I can do a search on whatever value might be in the description and have the search return the disk label and title that has that value linked to it. If that made any sense.

I have been playing around with Access and I can create a table that has a bunch of title and description fields but I can't see any way to link the description with the title.

Also want to be able to set it up so when I view the data later or print up reports, and the disk only has one title on it, it will only show that title and the description for it and not a bunch of empty fields along with it.

Little aggravating cause I used to do this kind of thing all the time but that was over 7 years ago and I have forgotten how to do all of this.

Thanks for any help you can give.

Mitch
Welcome to the forum, Mitch. Naa, you don't a need a bulletproof vest here.

You described a classic relational database model which is ideally suited for Access. You described a one-to-many relationship, that is, one CD may have "many" (zero or more) Titles. You need two tables: one representing CDs and one representing Titles. Every relational table needs a unique Primary Key field. "Unique" means that no 2 records in the table are allowed to have the same value in that field. The "many" table (Titles) will also have a Foreign Key field, which will contain the value of the CD Primary Key on which that Title is stored. So your tables will look like this:
Code:
tblCDs:
    CDid        Autonumber  (PK)
    DiskLabel   Text
    Source      Text
tblTitles:
    Tid         Autonumber  (PK)
    CDid        Number (Long Integer)  (FK)
    Title       Text
    Descrip     Text
...and maybe additional fields in each.

Autonumbers are assigned by Access as you add each record, so they are guaranteed to be unique within a table. They are used by the database software and should be of no concern to humans, except to use them to link data in tables.

With this arrangement, you can now look up a Title and it will link to the record in the CD table. A CD can have as many Titles as you want, it doesn't matter.

Fortunately, you can design Access forms that automatically create the Foreign Key in new Title records, by selecting which CD the Title is stored on. The details are too lengthy to try to explain that here. You should go through a tutorial to learn how to do that. There are many good tutorials online. Check out the list of Access Tutorial Videos posted as the first sticky post in this forum.
__________________
Experience is the thing you have left when everything else is gone.

Reply With Quote
  #3  
Old May 10th, 2008, 12:33 AM
SCUBA-guy SCUBA-guy is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 2 SCUBA-guy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 33 sec
Reputation Power: 0
Thanks Don, that jogged my memory quite a bit. Like I said before I used to work with databases a lot but that was a while ago and I am surprised at how much I have forgotten.

Think I am on the right track though, will check out those videos you recommended and I think I will be set.

Thanks again,
Mitch

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Need help creating an Access Database to keep track of items.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway