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 / General 1 / May 2008

Tip: Looking for answers? Try searching our database.

Problem with defining criteria in query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dario90@gmail.com - 12 May 2008 09:10 GMT
I have a query which takes data from 3 tables: Errors, Employees on
work stations, Employees. In our company we have a production line and
every employee has one-week assignment- e.g. on station AM, then
another week on station AN etc. Query connects errors with employees
and we have a briefly view on the situation. I used the function DMax
to have less work with assignments- we want to do it every Monday for
a whole week. But when i have different dates in fields 'Dates' from
table 'Employees on ...' the query shows only errors with the last
date, not the everyone. Do somebody know how can i define the criteria
for every employee- so the function DMax will find the last date for
every employee's ID not the last date in the whole table?
timmg - 12 May 2008 14:23 GMT
Sounds like you may want to create a subquery on the Errors table that
groups by Employee and selects the max date - either overall, or
within a specific period (which is my hunch as the better choice).

Use that query to join back to the other tables to show the required
data.

Best I can offer with the information given.

Tim Mills-Groninger

On May 12, 3:10 am, dari...@gmail.com wrote:
> I have a query which takes data from 3 tables: Errors, Employees on
> work stations, Employees. In our company we have a production line and
[quoted text clipped - 7 lines]
> for every employee- so the function DMax will find the last date for
> every employee's ID not the last date in the whole table?
 
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.