open excel

J

jnewl

need to import an excel file to access. but before importing, need to change
a field to text.
numberformat = "@" does not work, as still get conversion errors.

when i do a text to column, it will work properly, as i did this manually
with get external data.

what is the syntax for text to column for a specific column. the code would
be within a with statement

thanks
 
O

OldPro

need to import an excel file to access. but before importing, need to change
a field to text.
numberformat = "@" does not work, as still get conversion errors.

when i do a text to column, it will work properly, as i did this manually
with get external data.

what is the syntax for text to column for a specific column. the code would
be within a with statement

thanks

Are you using Access's TransferSpreadsheet( ) or TransferText( ) for
the import? Have you tried using an import specification?
 
J

jnewl

using transferspreadsheet. no on import spec. would not the text to column
concept work inside a with? that is what i get when i record an excel macro.
just do not know the syntax for access vb
 
O

OldPro

using transferspreadsheet. no on import spec. would not the text to column
concept work inside a with? that is what i get when i record an excel macro.
just do not know the syntax for access vb






- Show quoted text -

I don't think Access works like that. Try the import specification.
 

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

Top