My Assistant
![]() ![]() |
|
|
Jun 29 2005, 06:31 PM
Post
#1
|
|
|
UtterAccess Enthusiast Posts: 71 From: Enola, PA |
I have a large table with information about files on an AS/400, I have the file name, desc and field names. I want to be able to create a new table at each change in file name, adn have the table name corespond to the file name. So I am looking for a way to automate this so I do not have to enter each table name and run a make table query. Is there some code I can use that will look for each change in table name and create a new table? I hope I did a good job of explaining what I am trying to do.
Thanks in advance for any help |
|
|
|
Jun 29 2005, 06:58 PM
Post
#2
|
|
|
UtterAccess VIP Posts: 18,396 From: Oklahoma City, Oklahoma |
I would create a query to get all the unique file names.
Then open as a recordset and loop through the records and run a make table query. You could even read the fileds names to build the query. |
|
|
|
Jun 29 2005, 08:39 PM
Post
#3
|
|
|
UtterAccess VIP / UA Clown Posts: 25,075 From: LI, NY |
Why would you have duplicate tables?
|
|
|
|
Jun 30 2005, 06:35 PM
Post
#4
|
|
|
UtterAccess VIP Posts: 18,396 From: Oklahoma City, Oklahoma |
Did you get it working?
|
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 22nd May 2013 - 08:58 AM |