Hi, I have this great form.. I got it from internet by someone that I forgot the name ( I'm sorry)
This form can load a JPG file
but how can I view that JPG image in the report??
the form code :
Option Compare Database
Option Explicit
Private Sub cmdFindImage_Click()
'Confirms that user wants to replate the existing image
Dim bytConfirm As Byte
If Not Me.NewRecord Then
bytConfirm = MsgBox("Are you sure you want to replace the existing image?", vbQuestion + vbYesNo)
If bytConfirm = vbNo Then
Exit Sub
End If
End If
Me.imgImage.Picture = ""
'Sets the image location textbox to whatever file is salected in the Dialog box.
'(FileToOpen, calls a function that opens a File search Dialog box)
Me.txtImageLocation = FileToOpen
End Sub
Private Sub Form_Current()
Me.imgImage.Picture = ""
End Sub
Private Sub txtImageLocation_Click()
Me.imgImage.Picture = Me.txtImageLocation
End Sub
thanks
NB : Im not a programmer.. so I dont really advance in using code...
This form can load a JPG file
but how can I view that JPG image in the report??
the form code :
Option Compare Database
Option Explicit
Private Sub cmdFindImage_Click()
'Confirms that user wants to replate the existing image
Dim bytConfirm As Byte
If Not Me.NewRecord Then
bytConfirm = MsgBox("Are you sure you want to replace the existing image?", vbQuestion + vbYesNo)
If bytConfirm = vbNo Then
Exit Sub
End If
End If
Me.imgImage.Picture = ""
'Sets the image location textbox to whatever file is salected in the Dialog box.
'(FileToOpen, calls a function that opens a File search Dialog box)
Me.txtImageLocation = FileToOpen
End Sub
Private Sub Form_Current()
Me.imgImage.Picture = ""
End Sub
Private Sub txtImageLocation_Click()
Me.imgImage.Picture = Me.txtImageLocation
End Sub
thanks
NB : Im not a programmer.. so I dont really advance in using code...