wailingrecluse
Registered User.
- Local time
- Today, 00:29
- Joined
- Feb 10, 2009
- Messages
- 50
Hi all
I have multiple users across a network using a db and as a solution to a problem i've faced, I am trying to do the following.
If a user saves a new record, I would like access to check if tempTable exists, if it does then check for tempTable1, then tempTable2 and so on.
When it reaches a table that does not exist, I would like it to create the table and save the record into that table. Essentially allowing each user to have a seperate tempTable.
When they have finished with it, I would like access to delete the tempTable relating to their record and the data in it.
At the moment, I have one perm holding table and when the save button is pressed, the data is copied into that table and held until another button is pressed, where it deletes from holding table. The issue i have is that if more than one user at a time is using the db, then more than 1 record will be copied into the holding table and I do not want this.
I'm sure I know how to create a table and how to delete, but its the checking to see where a table can be created and incrementing this by one which i'm not sure of.
Any help will be greatly appreciated.
WR
I have multiple users across a network using a db and as a solution to a problem i've faced, I am trying to do the following.
If a user saves a new record, I would like access to check if tempTable exists, if it does then check for tempTable1, then tempTable2 and so on.
When it reaches a table that does not exist, I would like it to create the table and save the record into that table. Essentially allowing each user to have a seperate tempTable.
When they have finished with it, I would like access to delete the tempTable relating to their record and the data in it.
At the moment, I have one perm holding table and when the save button is pressed, the data is copied into that table and held until another button is pressed, where it deletes from holding table. The issue i have is that if more than one user at a time is using the db, then more than 1 record will be copied into the holding table and I do not want this.
I'm sure I know how to create a table and how to delete, but its the checking to see where a table can be created and incrementing this by one which i'm not sure of.
Any help will be greatly appreciated.
WR