How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Zabo04 Your Own Question

Zabo04
Zabo04, Computer Enthusiast
Category: Microsoft Office
Satisfied Customers: 211
Experience:  Experienced in Word, Excel, Access, Powerpoint, and Outlook.
Type Your Microsoft Office Question Here...
Zabo04 is online now
A new question is answered every 9 seconds

I have two tables in microsoft access. Table 1 has records

Customer Question

I have two tables in microsoft access. Table 1 has records with two fields. "Partial Name" and "account number". Sample. - rec1 Smith, 4433 rec 2 - miller, 1567 rec 3 Jones, 8765. Table has full names. Rec 1 - XXXXX XXXXX, Rec 2 - XXXXX XXXXX, rec 3 XXXXX XXXXX.

I want to have a query that would generate the results = XXXXX XXXXX, 4433 XXXXX XXXXX 1567, XXXXX XXXXX 8765. Is this possible.
Submitted: 2 years ago.
Category: Microsoft Office
Expert:  Zabo04 replied 2 years ago.

Zabo04 :

it is possible, but miller in table 1 probably needs to be Miller

Zabo04 :

In Table 2 full name would need to be split to first and last name

Zabo04 :

A better way is to have one table that has the full name and a customer ID, add the customer ID field to the table , remove the partial name from table 1. Link the two tables by customer ID, because, more than one user may have access to the same account if the account is a joint or company account.

Zabo04 :

Here is an access 2007 database with your example: http://www.mediafire.com/?5t5cmyc2j0ugjlx

Zabo04 :

First I had to define the relationship (linking the last name of table 2 to the partial name of table 1), look at the relationship to see that. Then I created a query, specifying that I wanted the first name, last name, from table 1 and account number from table 1.

Zabo04 :

let me know what else you want help on with this and exactly what you need beyond this current need and I'll give you some more advice.

Customer :

This doesn't really help. The tables i have were given to me as is. There is no way practical way to parse into multiple fields as in your example. If there was, I wouldn't have had the original question, I just would have done that.

Zabo04 :

Then I'm sorry, there is no way to link the tables as you have defined them. You can still add a column to each table. What you need is a one account to multiple users external key, without some unique identifying key an E-R based database cannot perform its functions. The data you describe lacks such a key, so tales are unable to be joined as they stand.

Zabo04 :

Your only choice in this case is to create a user ID and link that between the accounts and users by adding that column in both tables, manually. Lots of work, but from the way you describe your tables, whoever set them up did you a severe disservice and you are going to be limited and this will probably not be your only limitation if you continue to develop this database.

Zabo04 :

I did find a way, using some SQL string functions to get the last name out of the Full Name in your table2, and use that to join against the partial name in Table1 to match account numbers.

Zabo04 :

You'll want to look at the query, and look at it in SQL view to see what's going on, the "where" clause of the select statement is the place that's most interesting.

Zabo04 :

That's all in the same query I had before, Accnt Query.

Zabo04 :

There is now a new query, called Separate Query. You'll notice I redesigned Table2, so that it has a First, Last, and Name column. Name is XXXX XXX have now. First and Last you said you weren't given. If you add these two columns (which I already did), you can run a query to populate them by having it separate the first and last name by looking for the space. This is what the Separate Query does. This is called an update query, it updates the tables when it is run, Access will notify you "Warning you are about to update 3 record(s)", say okay to continue and the query will populate the first and last name columns. If you want to check it multiple times, just delete the first and last name records, then run the query again.

Zabo04 :

Here is the link to the access database: http://www.mediafire.com/?ad18bjbw5ad035l

Zabo04 :

Now, for security purposes, Access may disable the update query (Separate Query), because it has the ability to update a table, you will see a status bar in access below the normal toolbars that is giving you this warning. If you enable to that content, then the Separate Query will be able to run.

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
< Last | Next >
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
 
 
 

Meet The Experts:

 
 
 
  • jstinehelfer

    Information Systems Manager

    Satisfied Customers:

    36
    A+ Comptia Certified computer repair
< Last | Next >
  • http://ww2.justanswer.com/uploads/JS/jstinehelfer/2012-6-6_215146_Pictureofme1.64x64.png jstinehelfer's Avatar

    jstinehelfer

    Information Systems Manager

    Satisfied Customers:

    36
    A+ Comptia Certified computer repair
  • http://ww2.justanswer.com/uploads/JA/JasonJames122/2011-12-16_135647_jasonjamesheadshotweb.64x64.jpg JasonJames122's Avatar

    JasonJames122

    Computer Enthusiast

    Satisfied Customers:

    0
    I manage all information systems (network of Windows PC's and servers with Microsoft Office products) for a small business
  • http://ww2.justanswer.com/uploads/JE/jessmagz/2012-6-6_18129_jm.64x64.jpg Jess M.'s Avatar

    Jess M.

    Computer Support Specialist

    Satisfied Customers:

    301
    Computer Software Specialist for more than 10 years
  • http://ww2.justanswer.com/uploads/CH/chutz747/2011-11-6_14231_me.64x64.jpg The-PC-Guy's Avatar

    The-PC-Guy

    Computer Manager

    Satisfied Customers:

    274
    20 years experience providing remote computer support
  • http://ww2.justanswer.com/uploads/SP/spherrod/2012-6-6_174244_1000852.64x64.JPG Steve Herrod's Avatar

    Steve Herrod

    Computer Support Specialist

    Satisfied Customers:

    125
    Trained in Microsoft Office from 2000 through to latest version 2010.
  • http://ww2.justanswer.com/uploads/SE/Seashore2011/2011-12-6_33418_111205223015.64x64.jpg Chris L.'s Avatar

    Chris L.

    Support Specialist

    Satisfied Customers:

    124
    Certified Expert with over 10 years experience.
  • http://ww2.justanswer.com/uploads/KR/krkljatorm/2012-6-24_153417_ITMiro.64x64.jpg IT Miro's Avatar

    IT Miro

    Computer Scientist

    Satisfied Customers:

    97
    Bachelor's Degree in Information Technology, Microsoft Certified Professional