Hi all,
I cannot save my data in datagridveiw to the access database, can provide me the possible errors? Thanks

Hi all,
I cannot save my data in datagridveiw to the access database, can provide me the possible errors? Thanks

I discovered the data was save to the Debug folder already. Can any expert explain? Thanks a lot in advance.
You'll need to post the code you're using to save. A screenshot tells us nothing about the data framework you're using or how you're getting/setting the data. All this determines the behavior.
Is there arny update about your issue, it would be better to solve the issue if you could share your code, error message, simple reprdoucable project.
Best regards,
Zhanglong
I assume you mean when you save your data it is being saved to the debug folder Access file. That is likely because in your connection string you are using a local path to the Access file. Since your app (in Debug mode in the debugger) is running from the Debug folder then any relative paths will be relative to that. Hence if your connection string to the DB is something like 'MyDatabase.mdb` then it'll be loaded and saved in the directory where the binary is.
If you want to save the file elsewhere then you'll need to specify the full path in your connection string.
4 people are following this question.