Import from Excel fails after A97/A2K conversion

  • Thread starter david epsom dot com dot au
  • Start date
D

david epsom dot com dot au

300 sConnect = "[Excel 8.0;HDR=YES;DATABASE=" & sFile & "]" & sTable
310 Codedb.Execute "INSERT INTO tblCB_Cashbook_Import SELECT * from " &
sConnect & ";", DAO.dbFailOnError


After conversion from A97 to A2K, the Import fails with message:

Field 'tblCB_Cashbook_Import.strCreditor' cannot be a zero-length string.

Same spreadsheet: blank fields were accepted as null by A97, but rejected by
A2K.

Offhand, I can't think of any convenient way to make the import work again.
We will have to change the tmp table field specifications, and run a whole
series of update queries to convert the blank fields to null before merging
with the destination table.

Any suggestions?
 
G

GVaught

In Access change the field in question to all zero length. Look for this in
the table design.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top