J
JCM
I have a query that finds records in a table based upon a field on a form.
The criteria is LIKE "*" & [FormField] so the user can enter the last 4
digits of the Field to give the user a selection. This query has been run
fine for years. Now it is only finding some of the records that meet the
criteria even though they are all present in the table.
I suspected the index for the field that I search on, so I ran a compact and
repair. The search again return the same records as before. ( It is
returning 7 records of 66 that it should return). I then decided to export
that table to a blank DB. Deleted the records in the suspect table. Then
copied the table from the New Blank DB to the production DB and imported the
records to the problem table. The search from the query now returns the
correct 66 records.
I think that confirms the index is the issue however my question is:
Is their an easier way to rebuild the index? I sure thought there should be.
By the way, the table has over 66,000 records.
Thanks
Johnny
The criteria is LIKE "*" & [FormField] so the user can enter the last 4
digits of the Field to give the user a selection. This query has been run
fine for years. Now it is only finding some of the records that meet the
criteria even though they are all present in the table.
I suspected the index for the field that I search on, so I ran a compact and
repair. The search again return the same records as before. ( It is
returning 7 records of 66 that it should return). I then decided to export
that table to a blank DB. Deleted the records in the suspect table. Then
copied the table from the New Blank DB to the production DB and imported the
records to the problem table. The search from the query now returns the
correct 66 records.
I think that confirms the index is the issue however my question is:
Is their an easier way to rebuild the index? I sure thought there should be.
By the way, the table has over 66,000 records.
Thanks
Johnny