?
Solved

VB4  Standard Edition

Posted on 1997-04-22
1
Medium Priority
?
232 Views
Last Modified: 2008-03-10
I have Vb4 Standard edition.I was able to determine from the
online help that I cannot create objects like Database, workspace, etc. I'm limited to the Data object.
When I try to assign a new value to a field :
Data1.Recordset.MoveFirst
Data1.Recordset.Fields(1)="England"
Data1.Recordset.MoveNext
I get run time error 3020  "update without Addnew or Edit"

Why can't I modify the value of the field ?(field(1) is a
text field size 25"
According to the Programmers Guide this should work. Any ideas?
0
Comment
Question by:SFreitas
[X]
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
1 Comment
 
LVL 3

Accepted Solution

by:
rmichels earned 100 total points
ID: 1425604
After you do your MoveFirst to establish a current record you must use Data1.Recordset.Edit.  This then allows yout to assign data to the current record.  To update the row in the data table you use the Update method....Data1.RecordSet.Update.

Data1.Recordset.Addnew will create a new record in the table.

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

718 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