L
LarryP
I'm QC'ing an older database for up-migration to 2007, and there's a VBA
procedure that creates an index in various tables on various field(s). It
was written by a former colleague, long gone, probably back in the Access
2000 or maybe even Access 98 era, and Access 2007 doesn't like it at various
points -- object not found, object not supported, yadda yadda.
Can anyone point me to a reasonably simple code snippet that will index a
table (generally speaking, newly created by VBA) on one or more fields, with
a reasonable amount of error checking for table doesn't exist, field doesn't
exist, etc? My departed colleague, bless his heart, never saw a procedure he
couldn't make more complicated, but I'm of the opposite mindset. I could
spend a day fixing this, but if there's a copy-and-paste answer I'm all for
that.
procedure that creates an index in various tables on various field(s). It
was written by a former colleague, long gone, probably back in the Access
2000 or maybe even Access 98 era, and Access 2007 doesn't like it at various
points -- object not found, object not supported, yadda yadda.
Can anyone point me to a reasonably simple code snippet that will index a
table (generally speaking, newly created by VBA) on one or more fields, with
a reasonable amount of error checking for table doesn't exist, field doesn't
exist, etc? My departed colleague, bless his heart, never saw a procedure he
couldn't make more complicated, but I'm of the opposite mindset. I could
spend a day fixing this, but if there's a copy-and-paste answer I'm all for
that.