Problem updating Access database from web page with OleDbCommand | Bytes (2024)

Home Posts Topics Members FAQ

Hi

I am creating a webform in VB.Net which connects to an Access database.

I can get the webform to connect to the database fine and also to download
data but when I try and update the database by firing off an OleDBCommand I
get the following error:

"Problem firing System.Data.Ole Db.OleDbCommand - Operation must use an
updateable query"

Further Info
OleDBCommand.Co mmandText = "UPDATE Shots SET PDone = 90 WHERE ShotID = 131"

OleDBConnection .ConnectionStri ng = "Provider=Micro soft.Jet.OLEDB. 4.0;Data
Source=C:\Gizmo \GizmoVIII.mdb"

Can anyone suggest what I might be doing wrong?

Thanks

Tom

Nov 17 '05 #1

Subscribe Reply

0 Problem updating Access database from web page with OleDbCommand | Bytes (1) 1063 Problem updating Access database from web page with OleDbCommand | Bytes (2)

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1 3773

Updating an Access Yes/No field from a datagrid

by: Harry Devine |last post by:

I have a DataGrid that is configured to use the Edit/Update/Cancel concept correctly. My grid shows values from 5 database fields. I only need to update that last 4 fields. The last field is a Yes/No value in Access. Using the OleDbCommand, if I do not consider the Yes/No field, the ExecuteNonQuery command, using my UPDATE SQL statement,...

ASP.NET

5 2016

Problem with Datagrid updating using VB (ASP)

by: junglist |last post by:

Hi guys, I've been trying to implement an editable datagrid and i have been succesful up to the point where i can update my datagrid row by row. However what used to happen was that once i updated one row, all of them were updated so i immediatelly figured out that i have to include the id of every entry in the update statement. This is where...

ASP.NET

1 1530

updating from datagrid

by: jason |last post by:

The guts of the below asp.net vb code was pieced together from another thread - all due credit to it's original author. Thank you! I've modified it to maintain a small local Microsoft 2000 access DB via a datagrid control. The add and delete functions work great, but the edit does not actually update the database. I put in some displays...

ASP.NET

1 1437

access database not updating

by: Gert Albertse |last post by:

When I try to update my access database, nothing get updated. Here is my code: <%@ Page Language="VB" Debug="true" %> <script runat="server"> ' Insert page code here ' Function UpdateCustomer(ByVal ProjectID As String, ByVal ProjectName

ASP.NET

14 2109

A VERY strange problem when Updating a Dataset

by: Lars Netzel |last post by:

A little background: I use three Datagrids that are in a child parent relation. I Use Negative Autoincrement on the the DataTables and that's workning nice. My problem is when I Update these grid and write to the database and I set the new Primary Keys and related Fields to the new asigned atuonumbers in the Access.

Visual Basic .NET

6 1395

updating a access Database Record

by: Fred Geurtsen |last post by:

Question about updating a access Database Record! Normally i'm working with SQLserver, but i have to do this with access and it's not working. My error is: Operation must use an updateable query. This is my code: Dim objCommand As OleDbCommand Dim strSQLQuery As String ' Our insert command

Visual Basic .NET

1 2027

Problem in database updation through Adapter in VB.Net..

by: r2destini |last post by:

Hi Friends, I am new to .Net. So I don't know much. I am facing a problem in updating database through ADO.Net I am creating the dataset and there is no problem in the updation and deletion or insertion in the dataset but when I am updating the

ASP.NET

1 1231

Problem with Grid ?

by: Erland |last post by:

Hi all, I have created a simple database table in ACCESS named as "Users" that contains only two fields "UserID" ( Primary key )and "Password". I am having problems while UPDATING the records in DataGrid. When i click Edit button in datagrid and edit my values it actually doesn't update the vales with newly entered values rather it keep on...

ASP.NET

12 4402

Very slow updating access table using vb.net

by: MGM |last post by:

Hey everyone, I'm having some issues here. I have a large Access .mdb (over 400,000 rows). What I need to do is, there are 12 columns that need to be reordered (quite literally as simple as if it is XZY, change to XYZ, but the row next to it must ALSO be changed accordingly, as in, WEC to WCE ). Anyways, when counting all of the rows that...

.NET Framework

7560

What is ONU?

by: marktang |last post by:

ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...

General

7487

Changing the language in Windows 10

by: Hystou |last post by:

Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...

Windows Server

7998

Maximizing Business Potential: The Nexus of Website Design and Digital Marketing

by: jinu1996 |last post by:

In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...

Online Marketing

7844

Discussion: How does Zigbee compare with other wireless protocols in smart home applications?

by: tracyyun |last post by:

Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...

General

5126

Couldn’t get equations in html when convert word .docx file to html file in C#.

by: conductexam |last post by:

I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...

C# / C Sharp

3530

Trying to create a lan-to-lan vpn between two differents networks

by: TSSRALBI |last post by:

Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...

Networking - Hardware / Configuration

3514

Windows Forms - .Net 8.0

by: adsilva |last post by:

A Windows Forms form does not have the event Unload, like VB6. What one acts like?

Visual Basic .NET

1 1093

How to add payments to a PHP MySQL app.

by: muto222 |last post by:

How can i add a mobile payment intergratation into php mysql website.

PHP

800

Comprehensive Guide to Website Development in Toronto: Expert Insights from BSMN Consultancy

by: bsmnconsultancy |last post by:

In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

General

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisem*nts and analytics tracking please visit the page.

Problem updating Access database from web page with OleDbCommand | Bytes (2024)
Top Articles
Latest Posts
Article information

Author: Greg O'Connell

Last Updated:

Views: 5429

Rating: 4.1 / 5 (62 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Greg O'Connell

Birthday: 1992-01-10

Address: Suite 517 2436 Jefferey Pass, Shanitaside, UT 27519

Phone: +2614651609714

Job: Education Developer

Hobby: Cooking, Gambling, Pottery, Shooting, Baseball, Singing, Snowboarding

Introduction: My name is Greg O'Connell, I am a delightful, colorful, talented, kind, lively, modern, tender person who loves writing and wants to share my knowledge and understanding with you.