Aug 14, 2008 #1 zevw MIS Jul 3, 2001 697 US Sorry I am asking all these remote questions today. here is the code for setting the index to a table in the current database. Code: DBEngine(0)(0).Execute "CREATE UNIQUE INDEX PrimaryKey ON RptBal (ID)" How is it done, when its in another table?
Sorry I am asking all these remote questions today. here is the code for setting the index to a table in the current database. Code: DBEngine(0)(0).Execute "CREATE UNIQUE INDEX PrimaryKey ON RptBal (ID)" How is it done, when its in another table?
Aug 14, 2008 1 #2 Remou Technical User Sep 30, 2002 13,030 BE Same idea. [tt]Dim db As Database Set db = OpenDatabase("C:\docs\ltd.mdb") db.Execute "CREATE UNIQUE INDEX PrimaryKey ON New2 (ID)"[/tt] Upvote 0 Downvote
Same idea. [tt]Dim db As Database Set db = OpenDatabase("C:\docs\ltd.mdb") db.Execute "CREATE UNIQUE INDEX PrimaryKey ON New2 (ID)"[/tt]
Aug 14, 2008 Thread starter #3 zevw MIS Jul 3, 2001 697 US Ah! So I learned something new. I guess instead of DBEngine(0)(0).Execute I can do Currentdb.Execute when its in the current database. Correct me if I am wrong. Upvote 0 Downvote
Ah! So I learned something new. I guess instead of DBEngine(0)(0).Execute I can do Currentdb.Execute when its in the current database. Correct me if I am wrong.