
" It isn't working currently"
First, there's nothing in that code to close a form, only open one called "CDfrmchecksort".
Second, what DOES happen? What does it mean to say "it isn't working correctly"?
I would expect nothing to happen inasmuch as there is no code to close any form in that Sub. That would be something like
DoCmd.Close acForm, frm.Name, acSaveNo
where frm.Name is the name of the form, which is probably "CDfrmchecksort" in this case.
To close the form after successfully finding a specific record, you need to add two things.
A conditional to determine if the required record was found or not.
A line of code to close the search form if the find was successful.
In addition, you need to decide what else needs to happen when you don't find the record. Search again? Close the search anyway?
What do you need to do when a record is found, in addition to just closing the search form?