473,320 Members | 1,969 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,320 software developers and data experts.

Can DMIN return multiple values

I need to write an update query that will return the earliest date to a
table based on the data of a different table.
I have a labor table that looks like this

TableLabor
JobCode WorkORder Sequence Date Hrs LinkedField
A B100 4000 3/1/04 5 AB1004000
A B100 4000 2/1/04 8 AB1004000
B A100 2000 3/3/04 10 BA1002000
etc...

In my other table i need to show for each instance of Jobcode,
Workorder and sequence the earliest date.

TableBaseline
Jobcode Workorder Sequence Date LinkField
A B100 4000 2/1/04 AB1004000

Basically i need an update query to take the earliest date from
TableLabor and input it into the Date field of the TableBaseline field.

I created a query for each table with a linked field that contains
JobCode, Workorder and Sequence (is that right?) so the link field
would be AB1004000 and so on... I then used a query based on the
TableBaseline table and used the following function to update my
table...
dmin("[date]","tablelabor","[linkedfield]=[linkedfield]")
But it doesnt work...HELP please

Nov 13 '05 #1
1 1974
turtle wrote:
I need to write an update query that will return the earliest date to a
table based on the data of a different table.
I have a labor table that looks like this

TableLabor
JobCode WorkORder Sequence Date Hrs LinkedField
A B100 4000 3/1/04 5 AB1004000
A B100 4000 2/1/04 8 AB1004000
B A100 2000 3/3/04 10 BA1002000
etc...

In my other table i need to show for each instance of Jobcode,
Workorder and sequence the earliest date.

TableBaseline
Jobcode Workorder Sequence Date LinkField
A B100 4000 2/1/04 AB1004000

Basically i need an update query to take the earliest date from
TableLabor and input it into the Date field of the TableBaseline field.

I created a query for each table with a linked field that contains
JobCode, Workorder and Sequence (is that right?) so the link field
would be AB1004000 and so on... I then used a query based on the
TableBaseline table and used the following function to update my
table...
dmin("[date]","tablelabor","[linkedfield]=[linkedfield]")
But it doesnt work...HELP please


Maybe use a totals query and get the Min of the date.
Nov 13 '05 #2

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

Similar topics

66
by: Darren Dale | last post by:
Hello, def test(data): i = ? This is the line I have trouble with if i==1: return data else: return data a,b,c,d = test()
6
by: Stewart Allen | last post by:
Hi, I'm having trouble with the DMin function in finding the next date in the table that is greater than or is the same the date entered; The dates in the table's field are 04/18/02 06/16/02...
8
by: Gompie | last post by:
Why does the function DMin("Abs(!- #" & & "#)";"SomeTable") not work properly with datefields. It always finds the closest difference with a later date only, if an earlier date in the table is...
5
by: D. Shane Fowlkes | last post by:
This may be a very basic question but it's something I've never done before. I've looked at a couple of my favorite sites and books and can't find an answer either. I can write a Function to...
16
by: Nikolay Petrov | last post by:
How can I return multiple values from a custom function? TIA
8
by: aleksandar.ristovski | last post by:
Hello all, I have been thinking about a possible extension to C/C++ syntax. The current syntax allows declaring a function that returns a value: int foo(); however, if I were to return...
4
by: Ed Marzan | last post by:
Greetings, I have a query that returns varying prices for the same item in the following manner. Item1 Price1 Item1 Price2 Item1 Price3 Item1 Price4
2
ADezii
by: ADezii | last post by:
The incentive for this Tip was an Article by the amazing Allen Browne - I considered it noteworthy enough to post as The Tip of the Week in this Access Forum. Original Article by Allen Browne ...
4
by: Jonathan | last post by:
I have a SQL stored procedure for adding a new record in a transactions table. It also has two return values: CounterID and IDKey. I want to create a webservice that accepts the 10 input...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.