I'm trying to do a loop but it's different than others I've done. I need to loop through a recordset of Case ID's that are sequential starting with #1 but some of them have been deleted so I need it to get to the next available number.
In other words I might have these numbers in the database:
CaseID
1
2
3
4
5
8
9
10
.....
I need it to return the #6 since it is the next available number to be used.
I hope this makes sense.
In other words I might have these numbers in the database:
CaseID
1
2
3
4
5
8
9
10
.....
I need it to return the #6 since it is the next available number to be used.
I hope this makes sense.