I am importing data into Access from a csv file. The problem is, one of the fields in a certain column is sometimes blank (null). When reading the data into the access table, the rows where the values are null do not come into the table. How can I fix this problem? Thanks! Here is the code I am using:
$SqlStatement = ("INSERT INTO cust_sum_da " .
"(CustomerNumber, SalesMTD, CashMTD, noinvtd BalanceForward, TotalBalance, LastStatement) " .
"VALUES ('$one', '$ten', '$eleven', '$twelve', '$thirteen', '$fourteen', '$fifteen') "
;
$db->Sql($SqlStatement);
The noinvtd field , read in as $twelve, is the one that occasionally has a null value.
ALSO, I think when reading in the csv it thinks that the first row of information is headings and no matter what, it never reads in the first line of data. Does anyone know the way to get around that???
TMH
$SqlStatement = ("INSERT INTO cust_sum_da " .
"(CustomerNumber, SalesMTD, CashMTD, noinvtd BalanceForward, TotalBalance, LastStatement) " .
"VALUES ('$one', '$ten', '$eleven', '$twelve', '$thirteen', '$fourteen', '$fifteen') "
$db->Sql($SqlStatement);
The noinvtd field , read in as $twelve, is the one that occasionally has a null value.
ALSO, I think when reading in the csv it thinks that the first row of information is headings and no matter what, it never reads in the first line of data. Does anyone know the way to get around that???
TMH