A family of Microsoft relational database management systems designed for ease of use.
My question is why are you prepopulating the course numbers. As a general rule placeholder records are not a recommended technique. I'm not saying placeholder records should never be used, but I would have to understand why they are being used to justify the technique.
I've done a few training databases. I will usually have a courses. When a new course is being added I have a form where the course is added, an ID is assigned, the title is entered and any other info about the course. I don't understand the need for creating blank records with just a course number. If you don't have to do that, then there is no need for finding the first blank record.