P
PC
Hi,
I'm exporting a Union query from Access XP (2000 Format) to a Fixed Width
text file. The query itself works fine but when I attempt to Export the
Wizard starts and an error "Too few Parameters. 1 Expected" appears. The
parameter for the query is a String value and is referenced from a control
on a form which I beleive is the problem. i.e. "Jet doesn't reference the
control on the form".
An abbreviated verion of the query is as follows:
SELECT ChqID, SupAccountCode,
Right([DatePaid],4)+Mid([DatePaid],4,2)+Left([DatePaid],2) AS
TransactionDate, "Debit" as DCMarker
From tblInvoices
Where SupAccountCode = [Forms]![ParamForm]![ParamControl]
Union All SELECT ChqID, SupAccountCode,
Right([DatePaid],4)+Mid([DatePaid],4,2)+Left([DatePaid],2) AS
TransactionDate, "Credit" as DCmarker
from tblInvoices
Where SupAccountCode = [Forms]![ParamForm]![ParamControl]
from what I have read I should concatenate the values returned by the
referenced control but I can't seem to get this to work.
Any help on this would be appreciated.
...pc
I'm exporting a Union query from Access XP (2000 Format) to a Fixed Width
text file. The query itself works fine but when I attempt to Export the
Wizard starts and an error "Too few Parameters. 1 Expected" appears. The
parameter for the query is a String value and is referenced from a control
on a form which I beleive is the problem. i.e. "Jet doesn't reference the
control on the form".
An abbreviated verion of the query is as follows:
SELECT ChqID, SupAccountCode,
Right([DatePaid],4)+Mid([DatePaid],4,2)+Left([DatePaid],2) AS
TransactionDate, "Debit" as DCMarker
From tblInvoices
Where SupAccountCode = [Forms]![ParamForm]![ParamControl]
Union All SELECT ChqID, SupAccountCode,
Right([DatePaid],4)+Mid([DatePaid],4,2)+Left([DatePaid],2) AS
TransactionDate, "Credit" as DCmarker
from tblInvoices
Where SupAccountCode = [Forms]![ParamForm]![ParamControl]
from what I have read I should concatenate the values returned by the
referenced control but I can't seem to get this to work.
Any help on this would be appreciated.
...pc