WilliamHolmes
06-28-2007, 07:04 PM
(Sorry ment to say Append Chunk)
Hi im using the following code to add a new record...
Dim rs
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "comingup", connStr, 2, 2
rs.AddNew
rs("File Data").AppendChunk fileData
rs("Content Type") = contentType
rs("File Size") = fileSize
rs("Title") = FTitleInput
rs("Date") = (day(FDateInput)&"/"&month(FDateInput)&"/"&year(FDateInput))
rs("SmallDescription") = FDescriptionInput
rs.Update
This works perfectly BUT what do i need to now is update a record.
So i tried...
rsE.Open "Update comingup SET [Date]='"&(day(FDateInput)&"/"&month(FDateInput)&"/"&year(FDateInput))&"', [Title]= '"&FTitleInput&"', [File Size]="&fileSize&", [File Data]='"&fileData&"', [Content Type]='"&contentType&"', [SmallDescription]='"&FDescriptionInput&"' where [ID] = "&Cint(eventID), connStr
Its the FileData that is the problem. Its is of type OLE Object in MS Access.
Any ideas ?? Thanks
Hi im using the following code to add a new record...
Dim rs
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "comingup", connStr, 2, 2
rs.AddNew
rs("File Data").AppendChunk fileData
rs("Content Type") = contentType
rs("File Size") = fileSize
rs("Title") = FTitleInput
rs("Date") = (day(FDateInput)&"/"&month(FDateInput)&"/"&year(FDateInput))
rs("SmallDescription") = FDescriptionInput
rs.Update
This works perfectly BUT what do i need to now is update a record.
So i tried...
rsE.Open "Update comingup SET [Date]='"&(day(FDateInput)&"/"&month(FDateInput)&"/"&year(FDateInput))&"', [Title]= '"&FTitleInput&"', [File Size]="&fileSize&", [File Data]='"&fileData&"', [Content Type]='"&contentType&"', [SmallDescription]='"&FDescriptionInput&"' where [ID] = "&Cint(eventID), connStr
Its the FileData that is the problem. Its is of type OLE Object in MS Access.
Any ideas ?? Thanks