Dim VariableName = DLookup(“Field2”, “QryName”, (Dmax Field2(Dmax Field1))
But can’t quite see why it is not working.
The SQL for the query that I am referring to is as follows:
SELECT [QrySalesEnquiries&Customer].*
FROM TblAccountLetter INNER JOIN [QrySalesEnquiries&Customer] ON TblAccountLetter.AccountLetter = [QrySalesEnquiries&Customer].AccountLetterSplit
ORDER BY TblAccountLetter.SortOrder, [QrySalesEnquiries&Customer].TblSalesEnquiries.[Customer Account Number];
I notice that the SQL you posted is also sorted by:
[tt][QrySalesEnquiries&Customer].TblSalesEnquiries.[Customer Account Number];[/tt]
But I cannot see how that would work.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.