RE: Getting a text field using CDaoRecordset
From: XMarshall (XMarshall_at_discussions.microsoft.com)
Date: 02/07/05
- Next message: Stren Assaf: "How to open multiple Recordsets with a single connection?"
- Previous message: XMarshall: "RE: Can someone explain this"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 7 Feb 2005 04:17:02 -0800
Insert some exception handling into your code..I guess you can use
CDaoException class for the same.
"Jaime Stuardo" wrote:
> Hi all...
>
> I am accessing an Access 2000 database using DAO. One problem I have is when
> I try to retrieve a text datafield.
>
> I'm using this:
> COleVariant varValue;
> pRsLoc->GetFieldValue(_T("LOC_NAME"), varValue);
>
> after that call varValue has "" (VT_BSTR). If I use GetSQL to get the
> query, and use that query in Microsoft Access 2000, the query shows
> correctly the values. I notice you that this problem is only with text
> fields. When I retrieve number fields it works.
>
> I use Visual C++ 6.0 with SP6
>
> Any help would be greatly appreciated.
>
> Thanks
> Jaime
>
>
>
- Next message: Stren Assaf: "How to open multiple Recordsets with a single connection?"
- Previous message: XMarshall: "RE: Can someone explain this"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|