Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELECT 10000*tenthousands.Int + 1000*thousands.Int + 100*hundreds.Int + 10*tens.Int + units.Int AS iiii
FROM integers AS tenthousands, integers AS thousands, integers AS hundreds, integers AS tens, integers AS units
SELECT I.iiii
FROM myTable AS B RIGHT JOIN Integers10000 AS I ON B.NumberValue = I.iiii
WHERE B.NumberValue IS NULL AND I.iiii <=(Select MAX(NumberValue ) From myTable)
ORDER BY I.iiii
Function GetUnusedNumbers()
Dim rs, rsnew As DAO.Recordset
Dim i As Long
Set rsnew = CurrentDb.OpenRecordset("TempTable")
For i = 1 To 20
Set rs = CurrentDb.OpenRecordset("Select * from OrigTable where [ID] = " & i)
If rs.RecordCount = 0 Then
rsnew.AddNew
rsnew!UnusedNumber = i
rsnew.Update
End If
Set rs = Nothing
Next i
End Function