How do you use a multi tab excel sheet as a data table?

Showing Answers 1 - 1 of 1 Answers

Hi,

  Create a DSN for excel.
  Create a .xls file with multiple tab and name each tab.
  Use db_connect and db_excute function to access multiple tab's.
  Table name should be mentioned in square brackets with$ sign.
  
sample code

qry="select * from[Emp$]";
dsn="DSN=excel;DBQ=E:\W_RUN\test.xls";
rc=db_connect("query1",dsn,30);
rc=db_execute_query("query1",qry,record_number); 

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions