Results 1 to 4 of 4

Thread: unable to add new data.**RESOLVED**

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Location
    ottawa, canada
    Posts
    233

    unable to add new data.**RESOLVED**

    I have created a new table which has about 60 fields. However,when i try to add new data:

    data1.recordset.addnew

    and scroll the data control, absolutely nothing happens. the data isn't saved.

    Is the problem caused by the number of fields i have.

    i have checked the data control and the textboxes are pointing at the data control.

    Please help..
    Last edited by sparkash; Nov 30th, 2002 at 02:50 PM.

  2. #2
    Member
    Join Date
    May 2002
    Location
    Bhopal , India
    Posts
    52
    why dont you use data1.recordset.update method for saving the data (you can use this code at some button click & label it as save)

    also , though this is not essential but try using adodc instead of datacontrol .
    Amol

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Location
    ottawa, canada
    Posts
    233
    I am a newbie to databases, so initially i would rather use the data control.

    if i use data1.recordset.update i get the following error message:

    'update or cancelupdate without addnew or edit'. what deos this mean?

    please someone, point me in the right direction.

    Thanks

  4. #4
    Addicted Member diban's Avatar
    Join Date
    Aug 2002
    Location
    IN
    Posts
    152
    hi sparkash

    Its understandable that being a newbie u want to try the conventional basic data control but its all the more a reason to begin with ado. Pamol is right- use adodc, its almost the same as data control, only better. I helped a newbie like you in his application. This uses adodc, why don't you download the program and experiment with it. Go on the title VB and Access by jalbes, you will find the uploaded file there.

    Happy learning

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width