Jan 22, 2003 #1 JoeNg Programmer Apr 17, 2001 174 US Can I create a table by borrowing the table structure from another table? Thanks Joe
Jan 22, 2003 #2 Zathras Programmer Nov 12, 2002 3,317 US Try posting on a different forum: e.g. Microsoft: SQL Server or ANSI SQL Upvote 0 Downvote
Jan 22, 2003 #3 BTecho Programmer Dec 7, 2002 108 US Hi Joe Just an example Table1.Active:=true; Table1.FieldDefs.Update; Table1.IndexDefs.Update; Table2.TableName:='Table.db'; Table2.DatabaseName:='c:\Folder'; Table2.FieldDefs.Assign(Table1.FieldDefs); Table2.IndexDefs.Assign(Table1.IndexDefs); Table2.CreateTable; Upvote 0 Downvote
Hi Joe Just an example Table1.Active:=true; Table1.FieldDefs.Update; Table1.IndexDefs.Update; Table2.TableName:='Table.db'; Table2.DatabaseName:='c:\Folder'; Table2.FieldDefs.Assign(Table1.FieldDefs); Table2.IndexDefs.Assign(Table1.IndexDefs); Table2.CreateTable;
Jan 23, 2003 Thread starter #4 JoeNg Programmer Apr 17, 2001 174 US Hi, BTecho I suspected it has to do with fieldDefs, just not sure the syntax. Thank you! Joe Upvote 0 Downvote