Shawn
asked on
DMin refresher
I am trying to look up the oldest order a member made to update the member table but need a refresher.
Here's what I have:
t: DMin("DeliveryDate","tblTr anslationC ontractHis tory","[tb lTranslati onContract History]![ ContactID] = [tblTranslationContractMem bers]![Con tactID] ")
The sql error is can't find the name tblTranslationContractMemb ers.Contac tID
Any ideas to fix my a lib syntax?
Here's what I have:
t: DMin("DeliveryDate","tblTr
The sql error is can't find the name tblTranslationContractMemb
Any ideas to fix my a lib syntax?
Can you give the full context of the query?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
note quite.
Here is a query which works but it is a groupby query qhich doesn't work to update. I need the equivalent with dmin.
SELECT tblTranslationContractMemb ers.DateSt art, tblTranslationContractMemb ers.Contac tID, Min(tblTranslationContract History.De liveryDate ) AS MinOfDeliveryDate
FROM tblTranslationContractHist ory INNER JOIN tblTranslationContractMemb ers ON tblTranslationContractHist ory.Contac tID = tblTranslationContractMemb ers.Contac tID
GROUP BY tblTranslationContractMemb ers.DateSt art, tblTranslationContractMemb ers.Contac tID;
Here is a query which works but it is a groupby query qhich doesn't work to update. I need the equivalent with dmin.
SELECT tblTranslationContractMemb
FROM tblTranslationContractHist
GROUP BY tblTranslationContractMemb
Just to save me some time, can you post a sample db with some dummy data?
And, maybe what you are trying to update.
And, maybe what you are trying to update.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
wow datAdrenaline, you knocked it out of the park. Nice.
I also got this to work but I like your query.
DMin("DeliveryDate";"tblTr anslationC ontractHis tory";"Con tactID=" & [contactID])
I also got this to work but I like your query.
DMin("DeliveryDate";"tblTr