Build a Temporary Table

gheyman

Well-known Member
Joined
Nov 14, 2005
Messages
1,835
Office Version
  1. 365
Platform
  1. Windows
I am trying to see if want I want to do is even possible before I do more research.
I would like to have a "Temporary" table. I want to build a table on the fly when the user Uploads data from excel and then when they close the database the table and its data are deleted (Or just the data that was uploaded).
Big Picture: I want the users to be able to upload a list of parts, I then want to query that data against other permanent tables. But once the user is done, I no longer want that list of parts in my database.

Any suggestions are appreciated. Thanks
 

Some videos you may like

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

welshgasman

Well-known Member
Joined
May 25, 2013
Messages
880
Yes it is possible.
Perhaps use Google and the CREATE TABLE statement.?
 

xenou

MrExcel MVP
Joined
Mar 2, 2007
Messages
16,824
Office Version
  1. 2019
Platform
  1. Windows
It depends on what you mean by the user uploading data. In general I would prefer to have a real table that is not temporary but is used temporarily. However, it's pretty much potato potato on that ... you create a table use it, and delete. Or you clear a staging table and use it. Having some extra tables in the DB used for processing is no big deal. As far as creating a table - that's really not hard at all so a quick google search will turn up many examples I am sure.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,441
Messages
5,624,797
Members
416,054
Latest member
Ariel2219

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
Top