Hi
I am trying to load an image on form with form load event directly in event procedure, i have image frame on form and it will load the image once form is loaded or open.
Also i have more buttons and option on form that will change image upon selection individually, but in first on form load i need a different image.
Their is a way around to make table and reference the path in event procedure but i dont want to create a table just for images, so i decided to call it directly from events.
I try making it but not able to achieve the result
its giving me a error object variable with block variable not set.
I am trying to load an image on form with form load event directly in event procedure, i have image frame on form and it will load the image once form is loaded or open.
Also i have more buttons and option on form that will change image upon selection individually, but in first on form load i need a different image.
Their is a way around to make table and reference the path in event procedure but i dont want to create a table just for images, so i decided to call it directly from events.
I try making it but not able to achieve the result
Code:
Private Sub Form_Load()
Dim image As ObjectFrame
Dim Location As String
image = Me.ImageFrame
Location = "Z:\Access Database\Financial Accounting System\Images & Icons\Create account.jpeg"
Me.ImageFrame = Location
End Sub
its giving me a error object variable with block variable not set.