Actually, I used _ in front of table names to distinguish them from the regular tables, as they are lookup tables. Also they are used in front of queries which are not my main queries but used as a helper query to come to the final query. Only special character I used was ">" and "<" to denote the row source type of a field's combobox. They were named that way initially when I was much inexperienced in designing the database. Later I corrected myself as much as I could. However Access in its own right changed those characters to some other ways and I am not interfering to correct them in chase it gets corrupted.
I still cant open your cons table but I can poke around and see some other objects.
You should really correct your naming conventions as I would think what your using will eventually cause problems.
Notably you are using an octothorpe (#) in your field names. An octothorpe is used as a delimiter for dates. A dash(-) or minus sign is used in calculations.
see this link for commonly used names . . . http://access.mvps.org/access/general/gen0012.htm
It also appears that your storing multiple pieces of data in a single field.
Code:
SELECT Left([Cons]![Import_ID],7) AS [Fiscal Year], Mid([Cons]![Import_ID],9,3) AS Station, Mid([Cons]![Import_ID],13,IIf(Mid([Cons]![Import_ID],13,1)="S",6,3)) AS Category,
Code:
SELECT [_QtB1]![Fiscal Year] & [_QtB1]![Station] & [_QtB1]![Category] AS [Consignment ID], [_QtB1].SumOfBankValue FROM _QtB1;
You probably should have separate fields for FiscalYear, Station, and Category. Should there be a need to string them together you just concatenate them.
It appears you have multiple queries just to parse these fields out.