Aug 14, 2008 #1 zevw MIS Joined Jul 3, 2001 Messages 697 Location 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 Joined Sep 30, 2002 Messages 13,030 Location 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 Joined Jul 3, 2001 Messages 697 Location 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.
Aug 14, 2008 #4 Remou Technical User Joined Sep 30, 2002 Messages 13,030 Location BE Yes, you can. Upvote 0 Downvote