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 / June 2006

Tip: Looking for answers? Try searching our database.

How do I combine first and last name to create a unique record?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Summing and Grouping data in a Report - 13 Jun 2006 11:30 GMT
I have created two tables, multiple queries and multiple associated reports.  
When I currently run a report I have to differentiate last names (Smith1,
Smith2, etc) for my reports to collect data properly.  If I could some how
combine both first and last name to create a unique identifier ( I do not
have a situation where both first and last names are the same) my reports
would print out Smith instead of Smith1.

I used the Access Wizard to reate my Tables, Queries and Reports and have an
extremely limited knowledge of SQL.

Any help would be greatly appreciated.
Tom Lake - 13 Jun 2006 11:48 GMT
>I have created two tables, multiple queries and multiple associated
>reports.
[quoted text clipped - 7 lines]
> an
> extremely limited knowledge of SQL.

In your table design, select both first and last name fields then click the
Primary Key
icon.  The PK will be made up of both fields.  Of course you'll have to
delete any
current PK and redefine your relationships.

Tom Lake
Douglas J Steele - 13 Jun 2006 12:20 GMT
> >I have created two tables, multiple queries and multiple associated
> >reports.
[quoted text clipped - 13 lines]
> delete any
> current PK and redefine your relationships.

Note, though, that at some point soon, you doubtlessly WILL have records
with the same first name and last name. You may want to think of something
else that you can use now, rather than waiting until then.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

Ed Robichaud - 15 Jun 2006 13:31 GMT
Eventually, you will have 2 or more "Joe Smith"s, then 2 or more Joe Q
Smith"s, etc.  Try adding an autonumber primary key.

>>I have created two tables, multiple queries and multiple associated
>>reports.
[quoted text clipped - 16 lines]
>
> Tom Lake
John Vinson - 13 Jun 2006 17:01 GMT
On Tue, 13 Jun 2006 03:30:01 -0700, Summing and Grouping data in a
Report <SummingandGroupingdatainaReport@discussions.microsoft.com>
wrote:

>If I could some how
>combine both first and last name to create a unique identifier ( I do not
>have a situation where both first and last names are the same)

And you can be *absolutely certain* that you never will?

Names *simply are not unique*. I know three gentlemen named Fred
Brown, and they all live in a small town.

Simply use a unique PersonID as the grouping field; then you can have
multiple Smiths, or even multiple Dave Smiths, without interfering
with your grouping.

                 John W. Vinson[MVP]    
 
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.