Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Updating Access field

Posted on 1999-06-30
Medium Priority
Last Modified: 2010-05-02
I'm doing a small program to update some info in an Access table, the table doesn't have an index so I need to edit the record that the sursor is on. The two lines of code that pertain to this update are:

               rsEpi("Epi-ALT-MRN").Value = strAltMRN
But I get an error saying the provider doesn't support this.
Where am I going wrong?
Question by:tyy8
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Author Comment

ID: 1521099
Also, I'm using ADO to make the connection.

Expert Comment

ID: 1521100
You may need to add the rsEpi.Edit before the other 2, or if you are adding a new value you will need to use the rsEpi.AddNew Statement.

Hope this helps


Author Comment

ID: 1521101
There is only an "EditMode" property that I see associated with the ADO Recordset.
LVL 70

Accepted Solution

Éric Moreau earned 80 total points
ID: 1521102
The Edit method exist no more in ADO!

I think your problem is in the syntax. Try using the fields collection for accessing your field.
rsEpi.Fields("Epi-ALT-MRN").Value = strAltMRN

Another way, bypassing the fields collection, which is fastest is:
rsEpi!Epi-ALT-MRN = strAltMRN


Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question