qlong
Oct 3rd, 2000, 02:21 PM
This has been plaguing me for weeks. I am trying to use the AddNew method of a disconnected ADO recordset in a form to add new records to an Access 2000 database. I'm using an adUseClient cursor location, OpenDynamic cursor type, and optimistic locking. Also, I have 2 DataCombo controls on my form, and they work just fine when I navigate through the recordset. (I've got 2 ADO Data Controls on the form as well, so I've set the appropriate properties of the DataCombo controls to the disconnected recordset as well as to the respective ADODC's). So here's my prob:
When I call the recordset's AddNew method, I always get an error. Always. I can save changes by using the Update method, but the AddNew method just will not work! This morning, I even installed MDAC 2.5 and Service Pack 4 for Visual Studio 6.0 (which I'm using, obviously). I thought this would fix the prob, but it didn't. I'm at my wit's end and I have no idea what to do from here.
Has anyone else had this problem? My error reads something like "No columns will be updated...". It's just weird that the Update method will work but not the AddNew.
Also, I have 2 other forms with disconnected recordsets and when I use the AddNew method on those forms it works fine. However, I don't have DataCombo's on those forms so I'm thinking this is the problem. Or maybe it's got something to do with CursorType, CursorLocation, etc.
CAN ANYONE HELP ME?
Thanks!!!
qlong
When I call the recordset's AddNew method, I always get an error. Always. I can save changes by using the Update method, but the AddNew method just will not work! This morning, I even installed MDAC 2.5 and Service Pack 4 for Visual Studio 6.0 (which I'm using, obviously). I thought this would fix the prob, but it didn't. I'm at my wit's end and I have no idea what to do from here.
Has anyone else had this problem? My error reads something like "No columns will be updated...". It's just weird that the Update method will work but not the AddNew.
Also, I have 2 other forms with disconnected recordsets and when I use the AddNew method on those forms it works fine. However, I don't have DataCombo's on those forms so I'm thinking this is the problem. Or maybe it's got something to do with CursorType, CursorLocation, etc.
CAN ANYONE HELP ME?
Thanks!!!
qlong