Number of columns in an array

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I find out the number of fields an array has? I'm importing from a CSV
file and some times there is a different number of columns. Using a Split on
the text line with ","

Thanks
 
hi Mark,

Markm-s said:
How do I find out the number of fields an array has? I'm importing from a CSV
file and some times there is a different number of columns. Using a Split on
the text line with ","
You can use LBound(array()) and UBound(array()) to determine the lower
and upper bound of an array.

btw, why don't you use DoCmd.TransferText to import your file?


mfG
--> stefan <--
 

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

Back
Top