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 flopcat98 Your Own Question

flopcat98
flopcat98, Consultant
Category: Microsoft Office
Satisfied Customers: 7341
Experience:  degree in comp sci. 20+ years install work with networks for small and large companies
23372949
Type Your Microsoft Office Question Here...
flopcat98 is online now
A new question is answered every 9 seconds

Im trying to merge two data sets - one with serial numbers

Customer Question

I'm trying to merge two data sets - one with serial numbers listed multiple times for different dates of use, and one with product inventory (so, serial numbers listed only once) and the entity to which they belong.

Data set 1:

Date Serial Number
11/22/2012 XXXXXXXXXX
11/23/2012 XXXXXXXXXX
11/22/2012 XXXXXXXXXX

Data Set 2:

Serial Number Entity XXXXXXXXXX 1 XXXXXXXXXX 5

What I want to end up with is:

Date Serial Number Entity
11/22/2012 XXXXXXXXXX 1
11/23/2012 XXXXXXXXXX 1
11/22/2012 XXXXXXXXXX 5
Submitted: 1 year ago.
Category: Microsoft Office
Expert:  flopcat98 replied 1 year ago.
I see no easy way to do that if it is listed the way you say it is.

that is if you have multiple fields that have to turn into multiple records.

the way it should have been set up is
1 record for the inventory

multiple records for the sales

ie
xxxy price vender


xxxy sold 10 yy/mm
xxxy sold 20 yy/mm


from THAT
you can do a query and click on the join where you link the tables
and check the box for all records from sale and only those from inventory that match. a 1 to many join is easy to do.

if you have a table that says
xxxy sold 10 sold 20 sold 30
xxyy sold 13 sold 0 sold 40

that is just bad data design. it wont work in a database its the way people do excel because they dont know how to do a database and it has tons of limitations. You just ran into one.

about the only thing that you can do is export the data to a new file one field at a time. putting field a into the sold field to one table
then putting field b into the same stucture in another table sold field then field c etc. and them appending the 3 tables into 1 table and using that new table to do the simple match
Customer: replied 1 year ago.

Unless I'm misunderstanding your answer, I think my tables actually do match the first example you gave - one table contains Serial Number and Location (i.e. inventory), the other contains Serial Number and Date Used (i.e. each line contains 1 date and 1 serial number)


 


So, how do I do a 1-to-many match? I've already created 1-to-many relationships among the tables using serial number - I'm just missing the last step of joining. I've tried joining once before, and just got a drop down box, which is not what I want. I want a result with all records listed and the field fully populated.


 


Thank you for your help...

Expert:  flopcat98 replied 1 year ago.
create a query and add both tables to it

then just click on the field you want to match on in one table and drag it to the field that you want to match with it on the other table

a line will show up connecting the two tables
Customer: replied 1 year ago.

Thanks - I've already created the relationship. I want to merge the tables so that I end up with one table that has all fields (Serial Number, Date Used, and Location).


 


When I run a query, I'm able to get a result that has those fields but has only drop down boxes instead of populated fields in a table. I don't want to use this for look-up, I want a summary table that I can run data analytics from. What am I doing wrong?

Expert:  flopcat98 replied 1 year ago.
create it as a select query first and make sure that it works and gets all of your data. then turn it into a make table query

NOTE If you already have a select query that produces the data that you need, go to the next steps.

On the Create tab, in the Other group, click Query Design.

Convert the select query
Open your select query in Design view, or switch to Design view. Access provides several ways to do this:
If you have the query open in a datasheet, right-click the document tab for your query and click Design View.
If the query is closed, in the Navigation Pane, right-click the query and click Design View on the shortcut menu.
On the Design tab, in the Query Type group, click Make Table.
The Make Table dialog box appears.
In the Table Name box, enter a name for the new table.
-or-
Click the down-arrow and select an existing table name.

Do one of the following:
Place the new table in the current database
If it isn't already selected, click Current Database, and then click OK.
Click Run , and then click Yes to confirm the operation.

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