Hello,
I have a problem with an SQL statement.
The thing is that I want to use a union on a tinyinteger field with text.
Something like this:
strSQL = " SELECT DISTINCT Gramgewicht " & _
" FROM TblPapiersoorten " & _
" UNION SELECT 'ALLE GRAMGEWICHTEN' AS Gramgewicht " & _
" FROM tblpapiersoorten " & _
" WHERE (MachineID = " & [Forms]![FrmRapportering]![txtmachineID] & ") AND (Papiersoort = '" & [Forms]![FrmRapportering]![txtPapiersoort] & "')"
But the problem is that gramgewicht is tinyinteger and 'alle gramgewichten' is text. How can I solve thsi problem?
Thanks in advance,
Sven.
I have a problem with an SQL statement.
The thing is that I want to use a union on a tinyinteger field with text.
Something like this:
strSQL = " SELECT DISTINCT Gramgewicht " & _
" FROM TblPapiersoorten " & _
" UNION SELECT 'ALLE GRAMGEWICHTEN' AS Gramgewicht " & _
" FROM tblpapiersoorten " & _
" WHERE (MachineID = " & [Forms]![FrmRapportering]![txtmachineID] & ") AND (Papiersoort = '" & [Forms]![FrmRapportering]![txtPapiersoort] & "')"
But the problem is that gramgewicht is tinyinteger and 'alle gramgewichten' is text. How can I solve thsi problem?
Thanks in advance,
Sven.