J
JRH
I am using Access to front-end an SQL database. I am
currently trying to create a query in a .adp file. I can
get the query to run in SQL Query Builder but if I try to
cut and paste the following code into my query in Access,
I get the following error:
"This designer does not graphically support the COMPOUND
STATEMENT SQL construct."
IF (SELECT current_year
FROM current_year) = 2000 BEGIN
(SELECT tax_type
FROM dbo.tbl_tax_bill) END
SELECT dbo.tbl_business_unit.legal_entity_abbrv,
dbo.tbl_business_unit.bu#, dbo.tbl_business_unit.bu_name,
tax_type as av_per_return
FROM dbo.tbl_business_unit INNER JOIN
dbo.tbl_tax_bill ON
dbo.tbl_business_unit.bu_name = dbo.tbl_tax_bill.bu_name
INNER JOIN
dbo.tbl_legal_entity ON
dbo.tbl_business_unit.legal_entity_abbrv =
dbo.tbl_legal_entity.legal_entity_abbrv INNER JOIN
dbo.tbl_state ON
dbo.tbl_tax_bill.state_abbrv = dbo.tbl_state.state_abbrv
INNER JOIN
dbo.tbl_tax_district ON
dbo.tbl_tax_bill.tax_district_name =
dbo.tbl_tax_district.tax_district_name CROSS JOIN
[ABC\test].current_year
currently trying to create a query in a .adp file. I can
get the query to run in SQL Query Builder but if I try to
cut and paste the following code into my query in Access,
I get the following error:
"This designer does not graphically support the COMPOUND
STATEMENT SQL construct."
IF (SELECT current_year
FROM current_year) = 2000 BEGIN
(SELECT tax_type
FROM dbo.tbl_tax_bill) END
SELECT dbo.tbl_business_unit.legal_entity_abbrv,
dbo.tbl_business_unit.bu#, dbo.tbl_business_unit.bu_name,
tax_type as av_per_return
FROM dbo.tbl_business_unit INNER JOIN
dbo.tbl_tax_bill ON
dbo.tbl_business_unit.bu_name = dbo.tbl_tax_bill.bu_name
INNER JOIN
dbo.tbl_legal_entity ON
dbo.tbl_business_unit.legal_entity_abbrv =
dbo.tbl_legal_entity.legal_entity_abbrv INNER JOIN
dbo.tbl_state ON
dbo.tbl_tax_bill.state_abbrv = dbo.tbl_state.state_abbrv
INNER JOIN
dbo.tbl_tax_district ON
dbo.tbl_tax_bill.tax_district_name =
dbo.tbl_tax_district.tax_district_name CROSS JOIN
[ABC\test].current_year