I have tried that didn’t work.
But now one new thing come up.
I tried execute non-query, it is inserting data into database but giving error as well.
Once I run my code, it does create an entry in database of ms access that I can see, but gives me error saying " Message box: Object reference not set to an instance of an object."
See attachment below.
Hi
Somehow it worked now, I closed my project and started again , so it was working without the error.
Something strange happened.
But thanks for the help.