how to update binary field types in ADO
- From: everymn@xxxxxxxxx
- Date: Tue, 27 Feb 2007 22:22:51 -0600
Hi,
Having some difficulties updating binary fields. This bit of code
seems to work fine in VB6, but when I make the minor changes necessary
for it to run in VBscript the Update never happens.
In fact the assigment to fld.Value doesn't appear to happen since
msgbox fld.Value(0) after the assignment does nothing. Is this
something that is beyong the capabilities of VBscript?
Thank You!
Dim arrBin(7) As Byte
Dim b As Integer
Dim strBin As String
strBin = "bintest"
For b = 1 To 7
arrBin(b - 1) = Asc(Mid(strBin, b, 1))
Next
While Not oRs.EOF
For Each fld In oRs.Fields
lngtype = fld.Type
Select Case lngtype
Case adBinary, adVarBinary, adLongVarBinary
fld.Value = arrBin
oRs.Update
End Select
Next
oRs.MoveNext
Wend
.
- Follow-Ups:
- Re: how to update binary field types in ADO
- From: Richard Mueller [MVP]
- Re: how to update binary field types in ADO
- Prev by Date: SMS componets
- Next by Date: Re: how to update binary field types in ADO
- Previous by thread: SMS componets
- Next by thread: Re: how to update binary field types in ADO
- Index(es):
Relevant Pages
|