- Local time
- Today, 08:55
- Joined
- Aug 30, 2003
- Messages
- 36,272
That line would go wherever you want to open the report. Typically it would be behind a button on a form, perhaps with other criteria to restrict the report (date, customer, etc).
I'm actually leaning towards the table, though not far over. For the other, you could use a DLookup with a criteria that looked for the appropriate code (M1 I think?) and perhaps a second criteria to make sure they're active. Then find the max date for whatever customer that finds. The SQL method would involve a subquery that used the TOP predicate to return one record, with the same criteria.
I'm actually leaning towards the table, though not far over. For the other, you could use a DLookup with a criteria that looked for the appropriate code (M1 I think?) and perhaps a second criteria to make sure they're active. Then find the max date for whatever customer that finds. The SQL method would involve a subquery that used the TOP predicate to return one record, with the same criteria.