|
-
Nov 30th, 2002, 09:47 AM
#1
Thread Starter
Addicted Member
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.
-
Nov 30th, 2002, 10:20 AM
#2
Member
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 .
-
Nov 30th, 2002, 11:36 AM
#3
Thread Starter
Addicted Member
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
-
Nov 30th, 2002, 12:35 PM
#4
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|