Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

blob value Access 2000

Status
Not open for further replies.

Avacha

Technical User
Apr 1, 2002
69
US
Why doesn’t this line of code work?

Do Until RsMath.EOF
CONN.Execute
"UPDATE PhotoBlobTable Set PhotoBlobTable.photo_blob" & RsMath.Fields(“photo_blob”) & " where PhotoBlobTable.ssn= " & RsMath.Fields("SSN")
RsMath.MoveNext
Loop

PhotoBlobTable.photo_blob and RsMath.Fields(“photo_blob”) is blob
The Photo_blob value is not recognized, and I get this error:
Run-Time error ‘-2147217904(80040e10):’
No value given for one or more required parameters

Thamks for help.
 
;-)
Guess you've forgotten the equals sign =

UPDATE PhotoBlobTable Set PhotoBlobTable.photo_blob=" & RsMath.Fields(“photo_blob”) & "

Andreas Galambos
EDP / Technical Support Specialist
(andreas.galambos@bowneglobal.de)
HP:
 
Thanks but I missed "=" sign when I did copy.
 
The I guess it's the quotes:
Are photo_blob and SSN text or numerical?

If text, then

"UPDATE PhotoBlobTable Set PhotoBlobTable.photo_blob='" & RsMath.Fields(“photo_blob”) & "' where PhotoBlobTable.ssn= '" & RsMath.Fields("SSN") & "'"
 
photo_blob is binary (OLE object) and SSN is numerical.

 
Gulp [neutral]

in that case:
a) ignore my last post
b) Guess I must bow down and silently watch this thread, as I have never worked with OLE Objects in tables.

Hope Tony or any other of the wiz's reads this thread and hops in.

Sorry, that i can't provide help on that issue.
MakeItSo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top