I am using MSQuery to access data in a SQL database.
I am trying to combine a parameter use (from a cell in the workbook) with the Cast statement:
My statement
SELECT WORKORDER_BINARY.WORKORDER_BASE_ID,
CAST(CAST(WORKORDER_BINARY.BITS AS VARBINARY(8000)) AS VARCHAR(8000)), WORKORDER_BINARY.BITS_LENGTH FROM TEST.dbo.WORKORDER_BINARY WHERE (WORKORDER_BINARY.WORKORDER_BASE_ID=?)
gives the error "Parameters are not allowed in queries that can't be displayed graphically".
Can anyone help?
I am trying to combine a parameter use (from a cell in the workbook) with the Cast statement:
My statement
SELECT WORKORDER_BINARY.WORKORDER_BASE_ID,
CAST(CAST(WORKORDER_BINARY.BITS AS VARBINARY(8000)) AS VARCHAR(8000)), WORKORDER_BINARY.BITS_LENGTH FROM TEST.dbo.WORKORDER_BINARY WHERE (WORKORDER_BINARY.WORKORDER_BASE_ID=?)
gives the error "Parameters are not allowed in queries that can't be displayed graphically".
Can anyone help?