
July 29th, 2009, 06:31 AM
|
|
Registered User
|
|
Join Date: Jul 2009
Posts: 1
Time spent in forums: 28 m 34 sec
Reputation Power: 0
|
|
|
Insert data in Attachment data type in Access 2007 using DAO
Hello All,
I am working on MFC SDI application which has a database MS Access as backend.I am using DAO360.dll to manuplate database.Now i just want to insert data into table which has data type of Attachment.I found somewhere to use ACEDAO.dll for accdb file.The Field2 object has LoadFromFile()
method but i am unable to use it coz of following problem......
ACEDAO::Field2 field;
ACEDAO::Recordset2 res;
ACEDAO::Fields fields;
for(int i=0;i< fields.GetCount();i++)
{
fields.GetItem(COlevariant((long)i),&field);
}
bt it gives me compliation error can not convert from Field2** to Field** How can get Field2 object from Fields collection ACEDAO............................
Thats whay i am not able to use metods of Field2 object in acedao.dll
Pls help as i am new to this n tell me if i m on right track or nt
waiting 4 soon reply.........................
|