Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / April 2005

Tip: Looking for answers? Try searching our database.

Storing Text or integer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris - 19 Apr 2005 13:40 GMT
hello group.

I use alot of combo boxes to input data on forms.  All my combo boxes record
source are linked to dedicated dropdown  table's.
The tables are all set up with an Autonum Primary Key field and a
description field (text)

CostID  ¦ Cost
 1            Internal
 2            External
 3            Other

Should i store the PK or the value in my tables?
Ken Snell [MVP] - 19 Apr 2005 14:05 GMT
A relational data base system is conceived with the idea of linking fields
between tables. So, assuming that you will want to have many records with
the same "cost" information, I (with no knowledge of your tables, forms,
etc.) would expect that you'd store the CostID value in the other tables, as
you can always use a query to get the value of "Cost" (the text) for display
in reports, etc. This way, if you decide to change "Internal" to "Inside"
for example, you change it in just the original table and all other tables
would be able to use that new text value in their queries without changing
their data.
Signature


       Ken Snell
<MS ACCESS MVP>

> hello group.
>
[quoted text clipped - 10 lines]
>
> Should i store the PK or the value in my tables?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.