View Single Post
  #3 (permalink)  
Old 05-13-2008, 04:10 PM
willisgt's Avatar
willisgt willisgt is offline
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 157
Default Problem solved

I first created the database with SQLite Administrator.

However, I found the problem - the syntax of this line:

Code:
query = "REPLACE INTO photos ( id, photodata ) VALUES ( 1, " & cmd.FileToBLOB( pfn ) & " ) WHERE ( id = 1 )"
is completely incorrect. No whereclause was required for this REPLACE INTO.


Gary

__________________
PC: Windows XP Pro SP2 / Basic4PPC v6.3
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote