i have several queries which works fine in a macro. ...all the queries are like this
CREATE INDEX Company_ID ON Company (Company_ID) ;
however sometimes the index exists already .... and it causes my macro to bomb? Is it possible to modify the queries to check for the existence of an index before creating it?
Or do I have to create sveral queries like in addition... before running the CREATE index queries
DELETE INDEX Company_ID
I guess another problem will be I will get an error that No such index exists?
I'm running Access 2000..... Any ideas on how best to run my queries in a macro or oterwise is welcome
CREATE INDEX Company_ID ON Company (Company_ID) ;
however sometimes the index exists already .... and it causes my macro to bomb? Is it possible to modify the queries to check for the existence of an index before creating it?
Or do I have to create sveral queries like in addition... before running the CREATE index queries
DELETE INDEX Company_ID
I guess another problem will be I will get an error that No such index exists?
I'm running Access 2000..... Any ideas on how best to run my queries in a macro or oterwise is welcome