Go Back   Virginia Beach Online > Virginia Beach Car Clubs > Dodge Viper
FAQ Members List Calendar Blogging Arcade Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-26-2008, 12:17 PM
battlebot's Avatar
battlebot battlebot is offline
Senior Member
 
Join Date: Feb 2006
Location: The sticks of MD
Posts: 1,533
Send a message via AIM to battlebot Send a message via Yahoo to battlebot
Chrish

I remember you saying you're the master of Access or something, but what exactly do you use it for? And are you using 2007 with the ribbon? It seems really difficult to understand what a primary key's role is and why you would want to connect two tables together. Haul?
Reply With Quote
  #2 (permalink)  
Old 04-26-2008, 03:10 PM
Haul Asp's Avatar
Haul Asp Haul Asp is offline
Senior Member
 
Join Date: Feb 2006
Location: Lonestar state
Posts: 4,057
Let’s say that you are Walmart and you want to run a report each month on your customer purchases.


You would need to set up a database table that would hold your customer information (like name, address, phone #, etc.). Walmart has millions of customers, and some have the same names (like John Smith). So you need to assign a unique identifier to each customer (a customer number), so you will be able to find that customer in the future. You would assign a customer number and make it the primary key to the file. If you are searching for a specific customer, you will always find it by its customer number. You can also set up secondary keys (like last name), but a search on last name would usually produce a large list of all customers with that last name.


To track the customer purchases, you would need to set up another database table, which would include information about the customer’s purchases, such as item number (which would have its own database table), purchase quantity, purchase date, price and any other information that you want to track. It would also contain the customer number (that you created in the customer information table), and it would be assigned as the primary key for this file as well.

So now you have two separate tables (customer and customer purchase information). You will not be able to create your report without information from both tables. That’s where the primary key comes in. You will need to link (or relate) the two tables together using the primary key (the customer number). Linking by primary key ensures that both tables are on the same customer (in this case), so there is no mix up.

Does that help?
__________________
I had a life once, but my job ate it.

Last edited by Haul Asp : 04-26-2008 at 03:13 PM.
Reply With Quote
  #3 (permalink)  
Old 04-28-2008, 02:01 PM
battlebot's Avatar
battlebot battlebot is offline
Senior Member
 
Join Date: Feb 2006
Location: The sticks of MD
Posts: 1,533
Send a message via AIM to battlebot Send a message via Yahoo to battlebot
yeah

I need to read on this some more. Still don't know how to do searches through access. But from my understanding it seems like a very useful tool to learn, especially if you plan on starting a business
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 03:36 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6
(C) 1999-2008 VirginiaBeach.Com, Inc.