I am importing an Excel spread sheet to a table in Acess. I am then searching every single row and column of that created table in VBA. What I would like to know is, is there a way to find out how many culomns, fields, a table has in VBA. I will be importing spreadsheets that would vary in the number of columns it has. For that same reason I would like to know how many columns the table has,becasue I get an error: "Item cannot be found in the collection corresponding to the request or ordinal"
This happens in my design when I reached the last column in the table and I try to read a column that doesn't exit.
Here is the line that I am using that gets that error:
strHolder = rsTemp.Fields(indx)
Does any one have any ideas... Thank you very much.
This happens in my design when I reached the last column in the table and I try to read a column that doesn't exit.
Here is the line that I am using that gets that error:
strHolder = rsTemp.Fields(indx)
Does any one have any ideas... Thank you very much.