A
Abbey Normal
(If this message is a duplicate, apologies. I got anerror when submitting the
first one.)
Need help in finding out the right way to do this:
I have a report whose data source is qrySpec. This qrySpec has an inner join
on 3 fields, all in an 1-to-1 relationship. I want to add a field from
another file. there may not always be records in that file for that
particular sku. But if there is, there could be multiples. But I only want to
get the latest one. I accomplished this by adding another report to the
original report and using this as the data source:
SELECT TOP 1 Auditlog.Sku, Auditlog.Reason, Auditlog.user, Auditlog.chgdate
FROM Auditlog
(I change the sku by doing: CurrentDb.QueryDefs("qrySpecAuditLogs").SQL =
stNewQry)
********************************************************
This method works if a user is on a form viewing one sku and then selecting
the print report button. But there is another form where the user can enter
multiple skus. He does a preview first, then hits control p and then selects
his PDF printer.
This will only print one sku, and he needs to get the multiple reports all
in one PDF file.
Can anyone show me what's the best way of doing this?
I appreciate your help!
WHERE (((Auditlog.Sku)='66323027'))
ORDER BY Auditlog.chgdate DESC - I change the sku by the query
first one.)
Need help in finding out the right way to do this:
I have a report whose data source is qrySpec. This qrySpec has an inner join
on 3 fields, all in an 1-to-1 relationship. I want to add a field from
another file. there may not always be records in that file for that
particular sku. But if there is, there could be multiples. But I only want to
get the latest one. I accomplished this by adding another report to the
original report and using this as the data source:
SELECT TOP 1 Auditlog.Sku, Auditlog.Reason, Auditlog.user, Auditlog.chgdate
FROM Auditlog
(I change the sku by doing: CurrentDb.QueryDefs("qrySpecAuditLogs").SQL =
stNewQry)
********************************************************
This method works if a user is on a form viewing one sku and then selecting
the print report button. But there is another form where the user can enter
multiple skus. He does a preview first, then hits control p and then selects
his PDF printer.
This will only print one sku, and he needs to get the multiple reports all
in one PDF file.
Can anyone show me what's the best way of doing this?
I appreciate your help!
WHERE (((Auditlog.Sku)='66323027'))
ORDER BY Auditlog.chgdate DESC - I change the sku by the query