E
envirographics
Hi, I have need to see occasionally a second large image on a form.
The images use the Linked property of an Image Control and coding in
Event > OnCurrent to point the control to the ImagePath.
I would like to have a button called 'Click for CloseUpImage' that
would temporarily show the second image, another button with this to
close it. A nice touch would be to have this first button not visible
when CloseUpImage field was Null.
How best could I achieve this, e.g. a pop up subForm ? I wish to see
the fields whilst seeing the second image ideally.
What do I have to add to the coding ? Would this be in the Private Sub
Form Current coding ?
The paths to the two images are both stored in the same table as for
the rest of the fields for the form. Both entry windows currently
reside on the main form, would one have to move to the popup
form,.e.g. when I have a second image, I click the aforementioned
button, and enter the path in that form, ah but the button would be
greyed out !..not so good an idea !
Please advise
coding by the way is:-
Private Sub Form_Current()
On Error Resume Next
If IsNull(Me![PathToImageFile]) Then
Me![ImageFrame].Visible = False
Else
Me![ImageFrame].Picture = Me![PathToImageFile]
Me![ImageFrame].Visible = True
End If
If IsNull(Me![PathToImageFileCloseUp]) Then
Me![CloseUpImageFrame].Visible = False
Else
Me![CloseUpImageFrame].Picture = Me![PathToImageFileCloseUp]
Me![CloseUpImageFrame].Visible = True
End If
End Sub
Private Sub PathToImageFile_AfterUpdate()
On Error Resume Next
If IsNull(Me![PathToImageFile]) Then
Me![ImageFrame].Visible = False
Else
Me![ImageFrame].Picture = Me![PathToImageFile]
Me![ImageFrame].Visible = True
End If
If IsNull(Me![PathToImageFileCloseUp]) Then
Me![CloseUpImageFrame].Visible = False
Else
Me![CloseUpImageFrame].Picture = Me![PathToImageFileCloseUp]
Me![CloseUpImageFrame].Visible = True
End If
End Sub
Cheers
Envirographics
Findit code Envirographics_images
The images use the Linked property of an Image Control and coding in
Event > OnCurrent to point the control to the ImagePath.
I would like to have a button called 'Click for CloseUpImage' that
would temporarily show the second image, another button with this to
close it. A nice touch would be to have this first button not visible
when CloseUpImage field was Null.
How best could I achieve this, e.g. a pop up subForm ? I wish to see
the fields whilst seeing the second image ideally.
What do I have to add to the coding ? Would this be in the Private Sub
Form Current coding ?
The paths to the two images are both stored in the same table as for
the rest of the fields for the form. Both entry windows currently
reside on the main form, would one have to move to the popup
form,.e.g. when I have a second image, I click the aforementioned
button, and enter the path in that form, ah but the button would be
greyed out !..not so good an idea !
Please advise
coding by the way is:-
Private Sub Form_Current()
On Error Resume Next
If IsNull(Me![PathToImageFile]) Then
Me![ImageFrame].Visible = False
Else
Me![ImageFrame].Picture = Me![PathToImageFile]
Me![ImageFrame].Visible = True
End If
If IsNull(Me![PathToImageFileCloseUp]) Then
Me![CloseUpImageFrame].Visible = False
Else
Me![CloseUpImageFrame].Picture = Me![PathToImageFileCloseUp]
Me![CloseUpImageFrame].Visible = True
End If
End Sub
Private Sub PathToImageFile_AfterUpdate()
On Error Resume Next
If IsNull(Me![PathToImageFile]) Then
Me![ImageFrame].Visible = False
Else
Me![ImageFrame].Picture = Me![PathToImageFile]
Me![ImageFrame].Visible = True
End If
If IsNull(Me![PathToImageFileCloseUp]) Then
Me![CloseUpImageFrame].Visible = False
Else
Me![CloseUpImageFrame].Picture = Me![PathToImageFileCloseUp]
Me![CloseUpImageFrame].Visible = True
End If
End Sub
Cheers
Envirographics
Findit code Envirographics_images