Hi there,
I have a database set up with a field that is used for two different entrys, depending on the relationship it has with another table. I am trying to create a report that displays this field in both of its contexts.
So far I have set up two tables with the field in so the field can be displayed in both contexts and got a query to run bringing up the desired data.
The problem is that now I have created the report to show the data in, access gives me an error saying that the field could refer to more than one table in the FROM clause of my SQL. As you can see from my SQL below, I have stated the separate fields and tables to darw them from (the field in question is ow_name) and the stranger thing is that the query runs the SQL fine, its only the report that comes up with this error.
SELECT DISTINCT qry_ClientListwSyndMemOwner.ow_ref, qry_ClientListwSyndMemOwner.ow_name, qry_ClientListwSyndMemOwner.ow_obs1, qry_ClientListwSyndMemOwnlnk.ol_orefx, qry_ClientListwSyndMemOwnlnk.ol_perc, qry_ClientListwSyndMemOwner_1.ow_name
FROM (qry_ClientListwSyndMemOwner INNER JOIN qry_ClientListwSyndMemOwnlnk ON qry_ClientListwSyndMemOwner.ow_ref=qry_ClientListwSyndMemOwnlnk.ol_oref) INNER JOIN qry_ClientListwSyndMemOwner_1 ON qry_ClientListwSyndMemOwnlnk.ol_orefx=qry_ClientListwSyndMemOwner_1.ow_ref;
Any ideas?
I have a database set up with a field that is used for two different entrys, depending on the relationship it has with another table. I am trying to create a report that displays this field in both of its contexts.
So far I have set up two tables with the field in so the field can be displayed in both contexts and got a query to run bringing up the desired data.
The problem is that now I have created the report to show the data in, access gives me an error saying that the field could refer to more than one table in the FROM clause of my SQL. As you can see from my SQL below, I have stated the separate fields and tables to darw them from (the field in question is ow_name) and the stranger thing is that the query runs the SQL fine, its only the report that comes up with this error.
SELECT DISTINCT qry_ClientListwSyndMemOwner.ow_ref, qry_ClientListwSyndMemOwner.ow_name, qry_ClientListwSyndMemOwner.ow_obs1, qry_ClientListwSyndMemOwnlnk.ol_orefx, qry_ClientListwSyndMemOwnlnk.ol_perc, qry_ClientListwSyndMemOwner_1.ow_name
FROM (qry_ClientListwSyndMemOwner INNER JOIN qry_ClientListwSyndMemOwnlnk ON qry_ClientListwSyndMemOwner.ow_ref=qry_ClientListwSyndMemOwnlnk.ol_oref) INNER JOIN qry_ClientListwSyndMemOwner_1 ON qry_ClientListwSyndMemOwnlnk.ol_orefx=qry_ClientListwSyndMemOwner_1.ow_ref;
Any ideas?