Re: Concatenation for one field from two others in same table
- From: Dale <Dale@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 24 Jan 2009 17:46:01 -0800
Thanks to Bob & John for your responses. I was hoping to accomplish this:
Use the client bill to ID (12AMR1234 as an example; Field 1) and the
individual job site sequence number (001 - many to one relationships; Field
2) to combine a unique client ID for use in access and set up as the primary
key (12AMR1234-001; 12AMR1234-002, 12AMR1234-003, etc.; Field 3).
I'm downloading the client files from a older DOS system (that still is the
primary business system running our business) into .xls and then importing it
as my base customer file in Access. It contains basic client information
along with those 2 identifying fields mentioned above to utilize as unique
identifiers to each client. Access will provide my team a more robust CRM
solution that the DOS cannot once the database is built.
If I let Access assign the primary key (1,2,3,4,etc. through an autonumber
choice) then the next time I download from the DOS system(weekly), I won't
maintain integrity because new clients will have been added from DOS - I.E.
what was once 2 might now be 4 so the CRM data entered won't match the right
client.
--
Dale
"boblarson" wrote:
Okay, now I have it. It is best to use an autonumber primary key and then.
create a multi-field INDEX on the field you don't want duplicated.
I will post back soon with a URL to go see how to create that multi-field
index (in screenshots) so that it is easy to understand. An explanation here
might be too confusing.
--
Bob Larson
Free MS Access Tutorials and Samples at http://www.btabdevelopment.com
__________________________________
"John W. Vinson" wrote:
On Sat, 24 Jan 2009 16:18:01 -0800, boblarson
<boblarson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
However, it is not necessarily a good thing to use a composite key as it can
be very difficult for novice users to set up the "foreign key" equivalent in
their other tables. I personally would just say - go for the autonumber
primary key and then use validation to ensure no duplicates. But that's me.
Validation, or a separate unique two-field index. Agreed about the foreign
keys!
--
John W. Vinson [MVP]
- Follow-Ups:
- Re: Concatenation for one field from two others in same table
- From: John W . Vinson
- Re: Concatenation for one field from two others in same table
- References:
- Concatenation for one field from two others in same table
- From: Dale
- Re: Concatenation for one field from two others in same table
- From: John W . Vinson
- Re: Concatenation for one field from two others in same table
- From: boblarson
- Re: Concatenation for one field from two others in same table
- From: John W . Vinson
- Re: Concatenation for one field from two others in same table
- From: boblarson
- Concatenation for one field from two others in same table
- Prev by Date: Re: Concatenation for one field from two others in same table
- Next by Date: Re: Concatenation for one field from two others in same table
- Previous by thread: Re: Concatenation for one field from two others in same table
- Next by thread: Re: Concatenation for one field from two others in same table
- Index(es):
Relevant Pages
|