J
jim
I have a macro that I want to transfer text from the query I posted below. I
need to create a specification for the transfer. When I open the query and
select Export/Text, a dialog box appers that states "Too few parameters.
Expected 1". The query is based on anotehr query that asks for a date, but I
do not know if this is the reason for the error. Any help will be appreciated.
SELECT Left([DATE],2) & "/" & Mid([DATE],3,2) & "/" & Right([DATE],2) AS
DATE1, Left([NAME],InStr(1,[NAME]," ")-1) AS L_Name,
Mid([NAME],InStr(1,[NAME]," ")+1) AS F_Name, Right([LOCATION],11) AS
LOCATION1, [DNP BY DATE COMPa].[ACCT#], [DNP BY DATE COMPa].[MTR#], 60 AS
Connect_Fee, 0 AS Disconnect_Fee, [DEPOSIT1]/100 AS ADD_DEPOSIT, [DELQ]/100
AS DELQUINT, [CURRENT CHGS]/100 AS [CURRENT AMT], 100 AS AFTER_HOURS,
IIf([Status]="ELECTPAY",[DELQUINT],[DELQUINT]+[ADD_DEPOSIT]+[CURRENT
AMT]+[AFTER_HOURS]) AS TOTAL, [DNP BY DATE COMPa].REMARKS
FROM [DNP BY DATE COMPa];
need to create a specification for the transfer. When I open the query and
select Export/Text, a dialog box appers that states "Too few parameters.
Expected 1". The query is based on anotehr query that asks for a date, but I
do not know if this is the reason for the error. Any help will be appreciated.
SELECT Left([DATE],2) & "/" & Mid([DATE],3,2) & "/" & Right([DATE],2) AS
DATE1, Left([NAME],InStr(1,[NAME]," ")-1) AS L_Name,
Mid([NAME],InStr(1,[NAME]," ")+1) AS F_Name, Right([LOCATION],11) AS
LOCATION1, [DNP BY DATE COMPa].[ACCT#], [DNP BY DATE COMPa].[MTR#], 60 AS
Connect_Fee, 0 AS Disconnect_Fee, [DEPOSIT1]/100 AS ADD_DEPOSIT, [DELQ]/100
AS DELQUINT, [CURRENT CHGS]/100 AS [CURRENT AMT], 100 AS AFTER_HOURS,
IIf([Status]="ELECTPAY",[DELQUINT],[DELQUINT]+[ADD_DEPOSIT]+[CURRENT
AMT]+[AFTER_HOURS]) AS TOTAL, [DNP BY DATE COMPa].REMARKS
FROM [DNP BY DATE COMPa];