Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I made a desktop application and then made set-up of it.
I installed it in my laptop it works fine, but when I installed it on another computer it does not work.

On updating or inserting I am getting an error
operation must use an updatable query.


I don't know why.
Does anyone know why this is happening.

connection string is

public static string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data source=" + Application.StartupPath + "\\patientsmanagement.mdb";
Posted
Updated 8-Oct-11 9:00am
v3
Comments
Bala Selvanayagam 8-Oct-11 14:46pm    
can you please post your connection string ?
André Kraak 8-Oct-11 14:48pm    
Edited question:
Added pre tags
Formatted text/code
Spelling/Grammar
Replaced txt speak
codegeekalpha 8-Oct-11 14:57pm    
OK
codegeekalpha 8-Oct-11 15:00pm    
public static string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data source=" + Application.StartupPath + "\\patientsmanagement.mdb";
Bala Selvanayagam 8-Oct-11 15:12pm    
looks like its a user right issue as suggested by Andre.

Please check the user right

Check to make sure the user has sufficient right on the folder where the Access database is located, the user needs read and write rights.
If the application is installed in "Program Files\Application" the user will have no right to write there on Vista and Windows 7.

Also check if the file is not read-only.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900