T
Tige Brown
I have the following union query to consolidate transactions from an actual
sales table located on a Microsoft SQL server database table with budget
transactions located on an access table. The actual transactions are linked
to the access database.
select * from Qry_Aus_Budget_Sales
UNION select * from Qry_Aus_Actual_Sales;
When I run this query I am requested to provide a parameter for
"Query1.unique_no". I have no query entitled "Query1". "unique_no" is the
primary key in the actual sales table.
For the budget table I created a similar key with the name ID. In the
Qry_Aus_Budget_Sales query I used table_name.ID as unique_no to rename the
field.
Some further information, I am working with two countries with separate
tables for both actual and budget data. I first created the tables needed
and queries for one country and then used this as a template to create the
tables & queries for the second country. The first country is working fine
and does not ask me for a parameter input, only the second country's union
query.
I have tried renaming the relevant field in the budget sales table as
unique_no thereby not requiring a name change but this has had no effect on
the parameter request.
Thanks in advance for any assistance.
sales table located on a Microsoft SQL server database table with budget
transactions located on an access table. The actual transactions are linked
to the access database.
select * from Qry_Aus_Budget_Sales
UNION select * from Qry_Aus_Actual_Sales;
When I run this query I am requested to provide a parameter for
"Query1.unique_no". I have no query entitled "Query1". "unique_no" is the
primary key in the actual sales table.
For the budget table I created a similar key with the name ID. In the
Qry_Aus_Budget_Sales query I used table_name.ID as unique_no to rename the
field.
Some further information, I am working with two countries with separate
tables for both actual and budget data. I first created the tables needed
and queries for one country and then used this as a template to create the
tables & queries for the second country. The first country is working fine
and does not ask me for a parameter input, only the second country's union
query.
I have tried renaming the relevant field in the budget sales table as
unique_no thereby not requiring a name change but this has had no effect on
the parameter request.
Thanks in advance for any assistance.