I've been trying to create an image database using Access 2000 linked to all the images on our server, as per the instructions on the microsoft website.
The code to link the photos is as follows:
Private Sub Form_Current()
On Error Resume Next
If Not IsNull(Me![ImagePath]) Then
Me![Imageframe].OLETypeAllowed = 1
Me![Imageframe].SourceDoc = Me![ImagePath]
Me![Imageframe].Action = 0
End If
End Sub
Sub ImagePath_After Update()
On Error Resume Next
Me![Imageframe].OLETypeAllowed = 1
Me![Imageframe].SourceDoc = Me![ImagePath]
Me![Imageframe].Action = 0
End Sub
It then tells you to add to the properties of the 'unbound object frame'
Enabled = Yes<BR/>
Locked = No
I take it that <BR/> is By Row, so the image frame picks up the path on that row, and shows a different image per row.
The problem is that when the form/code is run all the images are referenced to the row that is clicked on/current, and when you use the properties box to try to change Yes to Yes<BR/> it won't allow the change and only allow Yes or No.
I've been trying to fix it for days can anyone help, it would be much appreciated.
The code to link the photos is as follows:
Private Sub Form_Current()
On Error Resume Next
If Not IsNull(Me![ImagePath]) Then
Me![Imageframe].OLETypeAllowed = 1
Me![Imageframe].SourceDoc = Me![ImagePath]
Me![Imageframe].Action = 0
End If
End Sub
Sub ImagePath_After Update()
On Error Resume Next
Me![Imageframe].OLETypeAllowed = 1
Me![Imageframe].SourceDoc = Me![ImagePath]
Me![Imageframe].Action = 0
End Sub
It then tells you to add to the properties of the 'unbound object frame'
Enabled = Yes<BR/>
Locked = No
I take it that <BR/> is By Row, so the image frame picks up the path on that row, and shows a different image per row.
The problem is that when the form/code is run all the images are referenced to the row that is clicked on/current, and when you use the properties box to try to change Yes to Yes<BR/> it won't allow the change and only allow Yes or No.
I've been trying to fix it for days can anyone help, it would be much appreciated.
Comment