Hi!
I want to get the link adress to an image in a report using VBA.
I use the following code:
I get the following error (translated from Swedish):
Error: 2424
The expression contains a field, a control or a property name that MS access couldnt find.
I want to get the link adress to an image in a report using VBA.
I use the following code:
PHP:
Dim strPath As String
strPath = [CurrentProject].[Path] & "\bilder\" & FirstImage
If Not Right(strPath, 7) = "bilder\" Then
Me.huvudbild.Picture = strPath
Else
Me.huvudbild.Picture = [CurrentProject].[Path] & "\bilder\_tom.jpg"
End If
I get the following error (translated from Swedish):
Error: 2424
The expression contains a field, a control or a property name that MS access couldnt find.