I have a SQL that inserts values into a Paradox table.
The SQL executes without any problems if the date value is not empty. However, the SQL would not execute properly if the date value is empty.
How can I get around this error?
Thanks
For example:
sDataDate : String;
sAcctNo : String;
sOrderNo : String;
sQStr := 'Insert Into "C:\MyTable.db" '+
'(DataDate, AcctNO, OrderNo)'+
'Values
'("'+sDataDate+'","'+sAcctNo+'","'+sOrderNo+'") ';
The SQL executes without any problems if the date value is not empty. However, the SQL would not execute properly if the date value is empty.
How can I get around this error?
Thanks
For example:
sDataDate : String;
sAcctNo : String;
sOrderNo : String;
sQStr := 'Insert Into "C:\MyTable.db" '+
'(DataDate, AcctNO, OrderNo)'+
'Values
'("'+sDataDate+'","'+sAcctNo+'","'+sOrderNo+'") ';