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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to Create a New Table

Status
Not open for further replies.

calihiker

Technical User
Jun 13, 2003
96
US
I have a form which contains a list of tables in a combo box, the user clicks on a table name and then clicks on the command button (that opens that particular table)...Here's where I am stuck. I need to create code that takes all the records selected by the user and create a seperate "new" table. Is this possible? What I would like is to enable the user to press a button after they select a group or multiple groups of rows in the table and be able to create a table from scratch. Any help would be appreciated, thanks!
 
If i understand what you asking....

dim cell as range

for each cell in range("whatever you range")
combobox1.additem cell.value
next cell



you just need to loop through all the cells with in the range. And in the loop add the coding that you need. This just simply adds every cell in the range to the combo box.

hope this helps

Paul J.
 
Is that ok to use in Access, or is that syntax just for Excel?
 
wow...i did this example for an excel application, and I didnt read your post closely enough. You need to do this with access?? Sorry about that, I need more cofee.

Paul J.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top