N
Nugimac
The following query works fine using the query grid but when I copy and paste
it into the code editor, it gives a syntax error.
The idea is that if the field CulvSize is null, then the first comma and the
phrase ‘mm dia’ do not show.
The table is called tblRecords, has fields Item and CulvSize
Both are text fields.
The query window in sql view shows
SELECT [Item] & (", "+[CulvSize]+" mm dia") AS Descr
FROM tblRecords;
I paste it into the code editor as shown below
strSQL = "SELECT [Item] & (", "+[CulvSize]+" mm dia") AS Descr " _
& "FROM tblRecords;"
But it just gives syntax error. I have tried several variations, but nothing
works. I can't see why not.
it into the code editor, it gives a syntax error.
The idea is that if the field CulvSize is null, then the first comma and the
phrase ‘mm dia’ do not show.
The table is called tblRecords, has fields Item and CulvSize
Both are text fields.
The query window in sql view shows
SELECT [Item] & (", "+[CulvSize]+" mm dia") AS Descr
FROM tblRecords;
I paste it into the code editor as shown below
strSQL = "SELECT [Item] & (", "+[CulvSize]+" mm dia") AS Descr " _
& "FROM tblRecords;"
But it just gives syntax error. I have tried several variations, but nothing
works. I can't see why not.