Must use an updateable Query error message - HELP!!!

G

Guest

I am not a programmer, but a rookie. I am trying to use a DS in Visual Studio .Net 2003 to make changes to an Access database. I get an "Operation must use an updateable query" error message. I do not know where I would add the code for an update query. I thought VS .Net creates the update, delete, and insert statements for you when you create the original Select statement. I have been typing the code, not using the drag & drop method. My Select statement used one variable to know what record to grab from teh data set. I need to do this for work,,, so I really need to figure this out.

I want to be able to use a aspx web page to manipulate an Access database on the server. I do not know what code to type for the update statement or where to put it. Here is my select statement code.

SelectStatement = "Select AdNum, Description, Title, Category, Price, Phone, EMail, State, Password, Posted From Ads Where AdNum =" & "'" & AdNumSent & "'" & "order by AdNum

Like I said, I am not a programmer yet, any help would be much appreciated

(e-mail address removed)
 
C

Cor Ligthert

Hi Topher,

Do never add a question to another question, not nice for the Original
Poster OP.

He thinks he get an extra answer now.

Have for your problem a look to this

http://msdn.microsoft.com/library/d...temdataoledboledbcommandbuilderclasstopic.asp

Some guys from the ADONET newsgroups say that it is buggy with and I thought
that it was with the JOIN.
However that JOIN does not work with Access, so that should not be a
problem, however keep track of it.

I hope this helps?

When it does not help create a "new" message in this case.

Cor





Topher Strugles said:
I am not a programmer, but a rookie. I am trying to use a DS in Visual
Studio .Net 2003 to make changes to an Access database. I get an "Operation
must use an updateable query" error message. I do not know where I would
add the code for an update query. I thought VS .Net creates the update,
delete, and insert statements for you when you create the original Select
statement. I have been typing the code, not using the drag & drop method.
My Select statement used one variable to know what record to grab from teh
data set. I need to do this for work,,, so I really need to figure this
out.
I want to be able to use a aspx web page to manipulate an Access database
on the server. I do not know what code to type for the update statement or
where to put it. Here is my select statement code.
SelectStatement = "Select AdNum, Description, Title, Category, Price,
Phone, EMail, State, Password, Posted From Ads Where AdNum =" & "'" &
AdNumSent & "'" & "order by AdNum"
 
C

Cor Ligthert

I do not see why this message did show up the first time in my OE on an
different thread, however please forget the first and the last lines.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top