Build a Temporary Table

gheyman

Well-known Member
Joined
Nov 14, 2005
Messages
1,682
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
 

welshgasman

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

xenou

MrExcel MVP, Moderator
Joined
Mar 2, 2007
Messages
16,551
Office Version
2013
Platform
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.
 

Forum statistics

Threads
1,081,528
Messages
5,359,305
Members
400,524
Latest member
Excelbat

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top