Help! I have a query designed to compile a list of training events with a parameter prompt for the Region CMB (see below):
There are two tables involved, Training Events and Stores (Design details below). The query expression was designed to take the appropriate region code from the Stores table, under the Regional Operations Director Code field. The query was attached to a report. Whether I run the query via the report or directly, I get the same syntax error message (see below) which appears to be related to the Cost Centre. Now, where do I begin to go to find the source of the error and correct it? Is it possible that it is new data in one of the tables which is incompatible with the rest?SELECT Training_Events.Title, Training_Events.[Start Date], Training_Events.[Start Time], Training_Events.[End Time], Training_Events.Location, Training_Events.Description, Training_Events.Trainer, DLookUp("[Regional Operations Director Code]","Stores","[Cost Centre]=" & [Location]) AS Expr1
FROM Training_Events
WHERE (((DLookUp("[Regional Operations Director Code]","Stores","[Cost Centre]=" & [Location]))=[Forms]![Show_Reports]![Region_CMB]));
It seems to run the query (when I trigger it directly), but the error message still appears (in fact it seems to appear periodically after I click OK on it!)
![]()