Assigning Memo fields
From: NayJo (CrawNOSPAMforMEford_at_mindspring.com)
Date: 11/24/04
- Previous message: NayJo: "Re: List of ADO Errors"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 24 Nov 2004 13:39:11 -0500
I have a memo field in an Access database that I am trying to populate in a
VB application using ADOR.recordset. I am using a 3rd party ActiveX control
to move data into a byte array and I want to store that data to the memo
field.
My naive stab at the problem yields nothing however.
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Dim mtmpl1() As Byte
Dim mRowset As ADOR.Recordset
' And later in a subroutine...
ReDim mtmpl1(Fpr1.TemplateSize - 1)
nBytesCopied = Fpr1.CopyTemplate(VarPtr(mtmpl1(0)))
' Assertion does not trigger
Debug.Assert ( Not FPr1.TemplateSize = 0)
Debug.Assert ( nBytesCopied = FPr1.TemplateSize)
mRowset("Template1") = mtmpl1
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Pardon my code, I am not a VB programmer but on examining the field, there
is no data in the database. And I apologize that it is not runnable code -
I am really trying to focus on the last assignment. Integers and strings
are present that I set are present and contain the expected values.
How should I assign data to the memo field?
Many thanks.
J
- Previous message: NayJo: "Re: List of ADO Errors"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|