V
veli.izzet
Hi,
I used to use the following code for showing pictures on forms in
Access 2003.
Now I use Access 2007, and I get an error message.
The code that used to work is:
----
Private Sub Form_Current()
On Error Resume Next
If Len(Dir(CurrentProject.Path & "\slides\" & Left(Me![KOD], 8) &
".jpg")) > 0 Then
Me![ImagePic].Picture = CurrentProject.Path & "\slides\" &
Left(Me![KOD], 8) & ".jpg"
Else
Me![ImagePic].Picture = ""
End If
Call LockBoundControls(Me, True)
Me.txtHidden.SetFocus
End Sub
I used to use the following code for showing pictures on forms in
Access 2003.
Now I use Access 2007, and I get an error message.
The code that used to work is:
----
Private Sub Form_Current()
On Error Resume Next
If Len(Dir(CurrentProject.Path & "\slides\" & Left(Me![KOD], 8) &
".jpg")) > 0 Then
Me![ImagePic].Picture = CurrentProject.Path & "\slides\" &
Left(Me![KOD], 8) & ".jpg"
Else
Me![ImagePic].Picture = ""
End If
Call LockBoundControls(Me, True)
Me.txtHidden.SetFocus
End Sub