M
Maury Markowitz
I have a read-only subform that collects data from one unique table,
and another "data table". Here is the SQL in the recordSource:
SELECT q.*, CASE WHEN b.VendorShortName IS NOT NULL THEN
b.VendorShortName ELSE b.VendorName END AS brokerName
FROM tblQuotes q INNER JOIN tblBrokers b ON b.ID = q.brokerId ORDER
BY q.[date] DESC
The query works as expected, returning 33 rows when there's no filter.
When I open the subform itself everything displays properly, with 33
rows. However, when I bind this into a form and join on accountId (so
the user can select a bank account and see what's there) I get an
error:
The column prefix 'q' does not match with a table name or alias name
used in the query.
Obviously 'q' IS being used as an alias name, and one of it's columns
is accountId. What does this error actually mean?
Maury
and another "data table". Here is the SQL in the recordSource:
SELECT q.*, CASE WHEN b.VendorShortName IS NOT NULL THEN
b.VendorShortName ELSE b.VendorName END AS brokerName
FROM tblQuotes q INNER JOIN tblBrokers b ON b.ID = q.brokerId ORDER
BY q.[date] DESC
The query works as expected, returning 33 rows when there's no filter.
When I open the subform itself everything displays properly, with 33
rows. However, when I bind this into a form and join on accountId (so
the user can select a bank account and see what's there) I get an
error:
The column prefix 'q' does not match with a table name or alias name
used in the query.
Obviously 'q' IS being used as an alias name, and one of it's columns
is accountId. What does this error actually mean?
Maury