J
Josh
I have some questions about Numeric vs. Text IDS.
Part I:
In short, is there a programatic reason why I should use
an numeric (autonumber) primary key for a lists that are
stored in tables? For instance, for a table of client
titles (President, Vice President, Executive VP, etc.)
that would be used to populate a combo box, is there a
benefit to using a numeric primary key as oppsed to the
actual tital being the primary key?
Part II:
What about if the list is joined to another list, such as
States and Counties
States
stateID -- autonumber (primary key)
state -- text
(with a one to many relationship on StateID)
Counties
CountyID
StateID
County
I've been encountering problems trying to move a filter
from a form to a report, because the state value is 33 as
opposed to "NY".
Am I just adding more work for myself by having this
autonumber as the primary key? Is it just as
programtically effecient to just use the state name as
the primary key and then have the state name and county
name together as the primary key.
Hope this made sense.
Thanks in advance.
Josh
Part I:
In short, is there a programatic reason why I should use
an numeric (autonumber) primary key for a lists that are
stored in tables? For instance, for a table of client
titles (President, Vice President, Executive VP, etc.)
that would be used to populate a combo box, is there a
benefit to using a numeric primary key as oppsed to the
actual tital being the primary key?
Part II:
What about if the list is joined to another list, such as
States and Counties
States
stateID -- autonumber (primary key)
state -- text
(with a one to many relationship on StateID)
Counties
CountyID
StateID
County
I've been encountering problems trying to move a filter
from a form to a report, because the state value is 33 as
opposed to "NY".
Am I just adding more work for myself by having this
autonumber as the primary key? Is it just as
programtically effecient to just use the state name as
the primary key and then have the state name and county
name together as the primary key.
Hope this made sense.
Thanks in advance.
Josh