When I do this excel comes up with error msg "...Cannot find input table or query 'tPPF'...etc" The tPPF table is in the criteria for one of the fields.
1.The query works fine in Access.
2.Other queries also using tPPF table import without problem into excel
3.If I remove the criteria statment the query import without problem.
the sql for the query:
Expand|Select|Wrap|Line Numbers
- SELECT tConsignmentResults.*
- FROM tConsignmentResults
- WHERE (((tConsignmentResults.Month)=(DLookUp("[Month]","tPPF","[CurrentMonth] =True"))));
Basically I am using Dlookup to find the current month code in the tPPF table, and then use resulting value to filter the month field.
Klipvis