I would like to reset the AutoID fields in some of my tables on a periodical basis using the repair and compact feture within Access.
I would like to automate this process so that I don't have to manually go into the database to do it.
I know (or at least think) I cannot run a repair and compact from VBA within the database file itself, but is there a way to send a command from one Access database file to repair and compact another Access databse file?
If so, might someone have a snipet of code which does this? Or tell me how I'd go about doing this. I'm lost at how I would point one database to open and compact the other...
Thanks
G
I would like to automate this process so that I don't have to manually go into the database to do it.
I know (or at least think) I cannot run a repair and compact from VBA within the database file itself, but is there a way to send a command from one Access database file to repair and compact another Access databse file?
If so, might someone have a snipet of code which does this? Or tell me how I'd go about doing this. I'm lost at how I would point one database to open and compact the other...
Thanks
G