Thanks Bill Crawley , But MyTableName is dynamically created
Quote:
Originally posted by Bill Crawley
use Access it'self and make sure you can seethe tables. You probably have a lock set on a table somewhere that needs to be manually unlocked through the administrator.
Dear Bill,
Thank you very much for your reply.
In my code:
accApp.DoCmd.TransferText acImportDelim, "Default Import Specification", MyTableName, MyDataFilePath, True
Before running, the database does not have the table: MyTableName which I wish Access create for me according to the specification described in "Default Import Specification". Because everytime this staement is executed, the program will stop and prompt error, and so the table isn't created. Thus when I open the database to see, there is no such table generated.
In the past, Access know how to do and no problem but I dun know why it now suffer!!
What you mean by lock set, where should I set back the Access to a normal state. (Or if I interpret this incorrectly.)
Thanks for reply. I appreciate follow-up posts.