Crazy Dutch
New member
- Local time
- Today, 08:56
- Joined
- Oct 12, 2013
- Messages
- 3
Hi there,
I volunteered to help build a database for the Dutch Rugby Union, which did go quite well up till now. But now they want an image with the contact details. In order to keep the database light, I thought it would be better to link them, so in the contact table there now is a link to the file. In my local computer the path of that link is:
C:\SDCard\SkyDrive\Documenten\NRB\Photos\SamplePhoto.jpg
while the database is stored in:
C:\SDCard\SkyDrive\Documenten\NRB\
What I did manage to do was to create an On Current event in the form properties:
Since the Photo field includes the full path, it works perfectly on any computer with the same path. But eventually it will be stored on both their server and during events on local laptops.
I really, really tried to sort this out myself. I already learned Access for this project, but am in over my head with this one. It would be great if the 'Photo' field would only contain 'SamplePhoto.jpg' and sort out the path by determining the path of the Access database + 'Photos'.
Since I believe this is VB code, I posted it here. Any chance someone is able to help a beginner out?
Thanks!
William
I volunteered to help build a database for the Dutch Rugby Union, which did go quite well up till now. But now they want an image with the contact details. In order to keep the database light, I thought it would be better to link them, so in the contact table there now is a link to the file. In my local computer the path of that link is:
C:\SDCard\SkyDrive\Documenten\NRB\Photos\SamplePhoto.jpg
while the database is stored in:
C:\SDCard\SkyDrive\Documenten\NRB\
What I did manage to do was to create an On Current event in the form properties:
Code:
Private Sub Form_Current()
PersonPhoto.Picture = Photo
End Sub
I really, really tried to sort this out myself. I already learned Access for this project, but am in over my head with this one. It would be great if the 'Photo' field would only contain 'SamplePhoto.jpg' and sort out the path by determining the path of the Access database + 'Photos'.
Since I believe this is VB code, I posted it here. Any chance someone is able to help a beginner out?
Thanks!
William