473,473 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Converting multiple records (rows) into one record (row) using a unique identifier

2 New Member
I very new to using Access. I am using Access 2007. I am trying to create a Query that shows an employee's weekly scheduled on the same row. I am importing the schedules from Excel which show each employee's work date on separate rows:

Example:

EXCEL IMPORT:

Expand|Select|Wrap|Line Numbers
  1. EE #    EE Name    Day of Week    WorkDate    Hours    InTime    OutTime    Lunch
  2. 18264    Jane Doe    Monday    06/22/15    6    8:00    14:30    0.5
  3. 18264    Jane Doe    Tuesday    06/23/15    6    8:00    14:30    0.5
  4. 18602    Jason Thomas    Monday    06/22/15    8    16:00    23:59    0
  5. 18602    Jason Thomas    Sunday    06/21/15    8    16:00    23:59    0
  6. 17529    John Smith    Monday    06/22/15    4    17:00    21:00    0
  7. 17529    John Smith    Sunday    06/21/15    11    10:00    21:30    0.5
  8. 18509    Mary Harris    Monday    06/22/15    6    9:00    15:00    0
  9. 18509    Mary Harris    Sunday    06/21/15    6    11:00    17:00    0
  10. 18509    Mary Harris    Tuesday    06/23/15    6    11:00    17:00    0
How I need the Query to read:

Expand|Select|Wrap|Line Numbers
  1. EmployeeNumber    EmpName    Sunday    Sunday Date    Hours    InTime    OutTime    Lunch    Monday    Monday Date    Hours    InTime    OutTime    Lunch    Tuesday    Tuesday Date    Hours    InTime    OutTime    Lunch
  2. 18264    Jane Doe                            Monday    06/22/15    6    8:00    14:30    0.5    Tuesday    06/23/15    6    8:00    14:30    0.5
  3. 18602    Jason Thomas    Sunday    06/21/15    8    16:00    23:59    0    Monday    06/22/15    8    16:00    23:59    0                        
  4. 17529    John Smith    Sunday    06/21/15    11    10:00    21:30    0.5    Monday    06/22/15    4    17:00    21:00    0                        
  5. 18509    Mary Harris    06/21/15    6    11:00    17:00    0        Monday    06/22/15    6    9:00    15:00    0    Tuesday    06/23/15    6    11:00    17:00    0
  6.  
I am hoping to post in the correct columnar format. Please help.

Thank you.
Jul 2 '15 #1
1 1502
zmbd
5,501 Recognized Expert Moderator Expert
So if I understand correctly, you are looking for a calendar layout with the weekdays as the header-row and the employee information as the first column?

Start with a crosstab query:
Make summary data easier to read by using a crosstab query
Once setup, you go to the table area in design view, right click, properties, column headers, enter the correct names.

You should read thru Allen Browne's Crosstab query techniques before you get started.

If you get stuck... post back!
Jul 8 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: J.D. Buehls | last post by:
I have an .asp page with a form to copy job responsibilites form one job to another. It is a hotmail type interface with checkboxes besides each responsibility. After submitting, it should copy...
2
by: Omega | last post by:
Hi How do I make my datagrid to display multiple records on a row ? With: <Columns> <asp:TemplateColumn> <ItemTemplate> <td>Blablabla</td>
0
by: Patrick.O.Ige | last post by:
I have a datagrid with checkboxes.. When a user clicks one check box and clicks the delete button it deletes that ROw. There another situation when a user clicks multiple rows so i had to loop...
13
by: franzey | last post by:
This is how the data is organized: vID Answer 12 Satisfied 12 Marketing 12 Yes 15 Dissatisfied 15 Technology 15 No
1
by: jllopez | last post by:
I need update multiple records in the datagrid but this is using ASP.net and VB, somebody that I can help?
1
Stephen74
by: Stephen74 | last post by:
I am trying to add multiple records to a single table using a SQL without using a loop in VBA. Is this possible? sample table tblNames FName | LName | Company...
0
by: Ray | last post by:
Hello, I have a table that contains multiple prices for multiple location (yes I know is should have been done with an Xref table or something, but I didn't create it and it's too late to do right...
11
by: Ganesh R | last post by:
Hi Friends... Can anyone plz help me out i'm stuck .... I want to delete multiple records from a data grid using cursors.the parameter for the stored procedure is an comma seperated string(of...
27
by: postman | last post by:
I need to combine multiple records into one row with multiple columns for those records. Very similar to a crosstab query, but one that shows all the records, not a summary of them. For...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.