473,387 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

MS Access 97 Find Duplicates Query w/o the Wizard

I work for a tool & die shop, and we have an Access DB that captures
work performed on each job we do. Each job could have 5 or more
entries for work performed on it. I am trying to create a query that
will only display the last activity performed, for each job.

Please note, I do NOT have the Find Duplicate Query Wizard, and need
to know how to create the Query with out the wizard.

The database table contains following data:

Job#
Date
Time Started
Time Ended
Employee
Function

Job# Date Start Ended Emp. Function
1001 08/15/04 08:00 12:00 JS Mill
1002 08/15/04 08:00 12:00 ES Cut
1001 08/20/04 09:00 12:00 KJ Grind
1002 08/21/04 08:00 12:00 HS Lathe

I would like the output of the query to be

Job# Date Start Ended Emp. Function
1001 08/20/04 09:00 12:00 KJ Grind
1002 08/21/04 08:00 12:00 HS Lathe

Any help in this would be appreciated.
Nov 13 '05 #1
1 2659
Erik,

Create a query based on your table. Be sure Date comes before Ended. Change
the query to a totals query by clicking on the Sigma (looks like capital E)
button on the toolbar at the top of the screen. Under Date, change Group By
to Max; under Ended, change Group By to Max. Run the query and it will give
you the last activit for each Job#.

BTW, Date is a reserved word and should not be used as a field name. Sooner
or later it will give you a problem.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"Erik Schweitzer" <el******@hotmail.com> wrote in message
news:81**************************@posting.google.c om...
I work for a tool & die shop, and we have an Access DB that captures
work performed on each job we do. Each job could have 5 or more
entries for work performed on it. I am trying to create a query that
will only display the last activity performed, for each job.

Please note, I do NOT have the Find Duplicate Query Wizard, and need
to know how to create the Query with out the wizard.

The database table contains following data:

Job#
Date
Time Started
Time Ended
Employee
Function

Job# Date Start Ended Emp. Function
1001 08/15/04 08:00 12:00 JS Mill
1002 08/15/04 08:00 12:00 ES Cut
1001 08/20/04 09:00 12:00 KJ Grind
1002 08/21/04 08:00 12:00 HS Lathe

I would like the output of the query to be

Job# Date Start Ended Emp. Function
1001 08/20/04 09:00 12:00 KJ Grind
1002 08/21/04 08:00 12:00 HS Lathe

Any help in this would be appreciated.

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

30
by: Andante.in.Blue | last post by:
I just browsed through some of my Access links when I came across the Ten Commandments of Access (http://www.mvps.org/access/tencommandments.htm). Some of the points I heartily agree with (and...
4
by: Sami | last post by:
I hope someone will tell me how to do this without having to do any VB as I know nothing in that area. I am a rank beginner in using Access. I have created a database consisting of student...
6
by: Marlene | last post by:
Hi All I have the following scenario, where I have found all the duplicates in a table, based on an order number and a part number (item).I might have something like this: Order PODate Rec...
1
by: Phil | last post by:
Hi. There is probably a very simple explanation for this. I am using the find duplicates wizard, I am asked for the fields that may contain duplcate info. So far so good at this point it functions...
1
by: Phil | last post by:
Hi Daryl. Thanks for you interest. I don't have the SQL, unlesss you mean the SQL behind the query? as to the "re-structuring" The first part of the wizard asks for the fields that may contain...
2
by: Phil | last post by:
Hi. I have a table containing primary address, secondary address, road,town, postcode, there are otherfields within the table requestid, round, day, etc. I want to find all instances of the...
52
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server...
1
by: charliej2001 | last post by:
Hi all My access database has import/export capabiltiy of contact details between outlook. The database is getting big now (1000+ contacts) and so are the outlook address books that have the...
0
by: csin | last post by:
I have an Access DB backend for the application I am running, I want to use the built in ability in Access to remove duplicate entries... Say I have table1 with fields field1 field2 and field3,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.