i tried the same code with Sqlite database and the program works fine.
but why does not it work with MS access?