E
Elka
I need to import Excel spreadsheet into Access
table "rate". I am using the following code:
DoCmd.TransferSpreadsheet acImport,
acSpreadsheetTypeExcel7, "rate", vrtSelectedItem, no
The data is imported just fine, but when I run a query
involving table "rate", the query displays an input box
for me to enter rate.Field1 value. My interpretation of
this is that the query does not see table "rate".
Another thing, if I import the same spreadsheet using the
Import Spreadsheet Wizard, the query runs fine. I
compared "rate" table created with the wizard and in code,
the design looks exactly the same. What am I missing in
my code? Please help.
Thank you in advance.
table "rate". I am using the following code:
DoCmd.TransferSpreadsheet acImport,
acSpreadsheetTypeExcel7, "rate", vrtSelectedItem, no
The data is imported just fine, but when I run a query
involving table "rate", the query displays an input box
for me to enter rate.Field1 value. My interpretation of
this is that the query does not see table "rate".
Another thing, if I import the same spreadsheet using the
Import Spreadsheet Wizard, the query runs fine. I
compared "rate" table created with the wizard and in code,
the design looks exactly the same. What am I missing in
my code? Please help.
Thank you in advance.