I've been writing a shipping label and receipt application for the past couple years for a local printing company. I never encountered errors using Windows Vista.
Now that I'm on Windows 7, I can't send Insert (or other commands) to an Access database. I get an error. If I 'Run as Administrator' or turn off UAC, then I don't get any problems.
Additionally, this application will be used on the shop floor, with very restricted user accounts. The shop floor computers are still using XP, but it's possible that they will be upgrading to Win7. If so, I would like to be prepared.
How can I get around UAC blocking the SQL commands? Normal queries work (like simply retrieving data from the DB), but attempting to add, edit, or delete values in the Access database get denied with the following error:
"System.Data.OleDb.OleDbException
Operation must use an updateable query."
If I turn off UAC or right-click and Run as Administrator, then I don't get the error.
Has anyone experienced this? How can I figure out a workaround?? The database is stored in the current user's My Documents directory, but I still get the error.
Thanks
Now that I'm on Windows 7, I can't send Insert (or other commands) to an Access database. I get an error. If I 'Run as Administrator' or turn off UAC, then I don't get any problems.
Additionally, this application will be used on the shop floor, with very restricted user accounts. The shop floor computers are still using XP, but it's possible that they will be upgrading to Win7. If so, I would like to be prepared.
How can I get around UAC blocking the SQL commands? Normal queries work (like simply retrieving data from the DB), but attempting to add, edit, or delete values in the Access database get denied with the following error:
"System.Data.OleDb.OleDbException
Operation must use an updateable query."
If I turn off UAC or right-click and Run as Administrator, then I don't get the error.
Has anyone experienced this? How can I figure out a workaround?? The database is stored in the current user's My Documents directory, but I still get the error.
Thanks