set safety off erase 'Tables\*.idx' erase 'Tables\*.cdx' erase 'Tables\*.tmp' mydbc='TABLES\data1.dbc' if !dbused("MyDbc") open database fullpath(mydbc) set database to &mydbc use table1 index on sno tag indexsno index on country tag indexcon endif messagebox("Done")