M
MonTpython
I am having a problem while setting up a select query that uses the results
of a form's multiple select list box as a filter. Everything works just fine
but I am getting a strange error. Whenever I go to open the query and it
tells me:
"The specified field 'StoreID' could refer to more than one table listed in
the FROM clause of your SQL statement"
The current FROM statement is as follows:
FROM ((tblMasterStoreTable LEFT JOIN tblBlueGreen ON
tblMasterStoreTable.StoreID = tblBlueGreen.StoreID) LEFT JOIN tlnkInitiatives
ON tblMasterStoreTable.StoreID = tlnkInitiatives.Store) LEFT JOIN
tblBandwidth ON tblMasterStoreTable.StoreID = tblBandwidth.Store
What is odd is that if I open the query itself in design view and click on
anything and then try to open the query, it no longer sees an error and opens
just fine (if I open it but don't click on anything it still gives the same
error). I haven't changed anything (I took snapshots of the SQL statement
before and after and their identical) but somehow it needs me to click on
something within design view before it will let me see the query results.
Any ideas on what might be triggering the error.
Thanks in advance,
MonT
of a form's multiple select list box as a filter. Everything works just fine
but I am getting a strange error. Whenever I go to open the query and it
tells me:
"The specified field 'StoreID' could refer to more than one table listed in
the FROM clause of your SQL statement"
The current FROM statement is as follows:
FROM ((tblMasterStoreTable LEFT JOIN tblBlueGreen ON
tblMasterStoreTable.StoreID = tblBlueGreen.StoreID) LEFT JOIN tlnkInitiatives
ON tblMasterStoreTable.StoreID = tlnkInitiatives.Store) LEFT JOIN
tblBandwidth ON tblMasterStoreTable.StoreID = tblBandwidth.Store
What is odd is that if I open the query itself in design view and click on
anything and then try to open the query, it no longer sees an error and opens
just fine (if I open it but don't click on anything it still gives the same
error). I haven't changed anything (I took snapshots of the SQL statement
before and after and their identical) but somehow it needs me to click on
something within design view before it will let me see the query results.
Any ideas on what might be triggering the error.
Thanks in advance,
MonT