SELECT INTO variable from Form

prezlincoln

New Member
Joined
Jul 13, 2011
Messages
2
Hi, I have a Make table query that uses the stored values from a form to make a new table. I've added a text box on the form for the new table name; however, I've been unable to modify the INTO variable to retreive the form's stored value.

How do I direct SELECT * INTO to [Forms]![frmMakeNewTable]![tboNewName]?

Thanks!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
You can't use values from a form for something like a table name like you can with the criteria.

As far as I know you would need code to do this.

Mind you, how many tables are you actually going to create?

Is this just a quick method to let you create a one-off table?

Or are you going to create multiple tables and populate them from another table/tables?
 
Upvote 0
Thanks, Norie.

This form will be used by over and over to create cusomized tables for a separate geodatabase. I've done it with a set name in the sql, but I would like users to specify the desired name in the form.

How could I do it with a code?
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top