D
Daniel
Hello,
i've created an old-ADO-recordset in C# via the following
code:
ADODB.RecordsetClass arTest;
arTest = new ADODB.RecordsetClass();
arTest.Fields.Append("Field1",
ADODB.DataTypeEnum.adInteger, -
1,ADODB.FieldAttributeEnum.adFldUnspecified,null);
arTest.Fields.Append("Field2",
ADODB.DataTypeEnum.adInteger, -
1,ADODB.FieldAttributeEnum.adFldUnspecified,null);
arTest.Open(null, null,
ADODB.CursorTypeEnum.adOpenForwardOnly,
ADODB.LockTypeEnum.adLockReadOnly,-1);
So far, so good, seems to work. Now i want to fill it with
data:
arTest.AddNew("Field1", 1);
And what i got is this:
Unhandled Exception:
System.Runtime.InteropServices.COMException (0x800A0BB9):
Arguments are of the wrong type, are out of acceptable
range, or are in conflict with one another.
Any ideas, how i can handle this?
Thanks in advance,
Daniel
i've created an old-ADO-recordset in C# via the following
code:
ADODB.RecordsetClass arTest;
arTest = new ADODB.RecordsetClass();
arTest.Fields.Append("Field1",
ADODB.DataTypeEnum.adInteger, -
1,ADODB.FieldAttributeEnum.adFldUnspecified,null);
arTest.Fields.Append("Field2",
ADODB.DataTypeEnum.adInteger, -
1,ADODB.FieldAttributeEnum.adFldUnspecified,null);
arTest.Open(null, null,
ADODB.CursorTypeEnum.adOpenForwardOnly,
ADODB.LockTypeEnum.adLockReadOnly,-1);
So far, so good, seems to work. Now i want to fill it with
data:
arTest.AddNew("Field1", 1);
And what i got is this:
Unhandled Exception:
System.Runtime.InteropServices.COMException (0x800A0BB9):
Arguments are of the wrong type, are out of acceptable
range, or are in conflict with one another.
Any ideas, how i can handle this?
Thanks in advance,
Daniel