F
Finks
Could someone please help me with this as I've been going round in cricles
for days getting nowhere.
I have a form in which people enter data in to a couple of txt fields and
also an option to load an image. I then use the following code to save the
data to a table -
Private Sub cmdAdd_Click()
Dim dbs As Database, rst As Recordset
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("tblEquipment", dbOpenDynaset)
With rst
.AddNew
![Model] = Me.txtModel
![Description] = Me.txtDescription
![Reference] = Me.txtReference
![Serial] = Me.txtSerial
![Image] = Me.imgPicture.Picture
.Update
End With
rst.Close
Set dbs = Nothing
End Sub
The problem is that the Image field on the table says 'Long Binary Data'
instead of 'Bitmap Image' and I am unable to view the image.
Thnks in advance.
for days getting nowhere.
I have a form in which people enter data in to a couple of txt fields and
also an option to load an image. I then use the following code to save the
data to a table -
Private Sub cmdAdd_Click()
Dim dbs As Database, rst As Recordset
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("tblEquipment", dbOpenDynaset)
With rst
.AddNew
![Model] = Me.txtModel
![Description] = Me.txtDescription
![Reference] = Me.txtReference
![Serial] = Me.txtSerial
![Image] = Me.imgPicture.Picture
.Update
End With
rst.Close
Set dbs = Nothing
End Sub
The problem is that the Image field on the table says 'Long Binary Data'
instead of 'Bitmap Image' and I am unable to view the image.
Thnks in advance.