Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

importing control values from excel to access

Status
Not open for further replies.

Ashank4vba

Programmer
Apr 29, 2005
115
0
0
IN
Hello,

I am trying to import data from a questionnaire (excel file) into access tables. The questionnaire contains controls (checkboxes, comboboxes, option buttons etc).
I would like to know the best way to import all that data to Access.

I can use DoCmd.transferspreadsheet function to import data in cells by using their ranges in excel. For this, I can store the ranges of all 'answers' and individually 'transferspreadsheet' each answer (by specifying 'range_x:range_x'). However, I'm don't know yet as to how to get the answers that come in controls in the excel file (option buttons, checkboxes).

Please help! Thanks.
 
I guess I don't need to use transferspreadsheet. I can just create excel objects and work with them and hopefully I can access controls with them.
 
<option button name here>.Value works

-4146 means that it is not selected!
1 is selected.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top