A
Amit
MS Access 2K, Windows XP
====================
Hi,
I have a query (QueryA) that concatenates values for a field using the
function here:
http://www.mvps.org/access/modules/mdl0008.htm
I have another query (QueryB) that is combined with queryA. QueryB and
QueryA have a left join based on the Primary key. So, I'm including all
records from QueryB, and only those records from QueryA where the values
match based on the PK.
Here's my problem. If I run this new query (QueryC), I get "Error #. 3075:
Syntax Error: Missing OPerator in Query expression '[ContactID]=' ". I get
this error box many times, and after I've clicked, the query results are
displayed correctly.
But, if I run QueryA as a make-table query, and then left-join this new
table to QueryB, and then run this query (QueryC), I do not get the error
message, and it works fine.
The problem is that I have a form that exports the results of QueryC to
Excel spreadsheet by clicking on a button. Everytime before I export the
data, I have to go into the database and run QueryA and create the table.
Is there a way to fix this so that
a. Either there is a single query (as proposed in the first scenario, w/o
making a table) that I can run from the form without getting any error
messages.
b. Or some way to run the make-table query from the form. That means, not
displaying the warning message that pops up when a make-table query is run.
I haven't done b. so, will appreciate a detailed response if that is the
easier solution. This is in a multi-user split database. I'm assuming that
the table will be created in the FE that is on each user's desktop, and
deleted after exporting data.
Thanks for any pointers.
-Amit
====================
Hi,
I have a query (QueryA) that concatenates values for a field using the
function here:
http://www.mvps.org/access/modules/mdl0008.htm
I have another query (QueryB) that is combined with queryA. QueryB and
QueryA have a left join based on the Primary key. So, I'm including all
records from QueryB, and only those records from QueryA where the values
match based on the PK.
Here's my problem. If I run this new query (QueryC), I get "Error #. 3075:
Syntax Error: Missing OPerator in Query expression '[ContactID]=' ". I get
this error box many times, and after I've clicked, the query results are
displayed correctly.
But, if I run QueryA as a make-table query, and then left-join this new
table to QueryB, and then run this query (QueryC), I do not get the error
message, and it works fine.
The problem is that I have a form that exports the results of QueryC to
Excel spreadsheet by clicking on a button. Everytime before I export the
data, I have to go into the database and run QueryA and create the table.
Is there a way to fix this so that
a. Either there is a single query (as proposed in the first scenario, w/o
making a table) that I can run from the form without getting any error
messages.
b. Or some way to run the make-table query from the form. That means, not
displaying the warning message that pops up when a make-table query is run.
I haven't done b. so, will appreciate a detailed response if that is the
easier solution. This is in a multi-user split database. I'm assuming that
the table will be created in the FE that is on each user's desktop, and
deleted after exporting data.
Thanks for any pointers.
-Amit