Surjer
Registered User.
- Local time
- Today, 18:42
- Joined
- Sep 17, 2001
- Messages
- 232
I have designed a form to automatically put photos in a table. The problem is that the db is getting huge after just a few pictures---- There will be about 621 photos total...
here is my code.....
ohhh yeah. I am linking them (Not embedding) please help.
Private Sub Command8_Click()
Dim I As Double
On Error GoTo ERR_HAN
For I = 1 To 207
[CON_PHOTO1].OLETypeAllowed = acOLELinked
[CON_PHOTO1].SourceDoc = "C:\2002Projects\FBN\Ky\PHOTOS\EXISTING\" & Me.DESIGNATION & "-" & Me.PID & "-1.JPG"
[CON_PHOTO1].Action = acOLECreateLink
[CON_PHOTO1].SizeMode = acOLESizeStretch
DoCmd.GoToRecord , , acNext
[CON_PHOTO1].SourceDoc = " "
Next I
ERR_HAN:
If Err.Number = 2101 Or 2778 Then
Resume Next
Else: MsgBox (Err.Number & " " & Err.Description)
End If
Exit Sub
End Sub
Thanks,
Jerry
here is my code.....
ohhh yeah. I am linking them (Not embedding) please help.
Private Sub Command8_Click()
Dim I As Double
On Error GoTo ERR_HAN
For I = 1 To 207
[CON_PHOTO1].OLETypeAllowed = acOLELinked
[CON_PHOTO1].SourceDoc = "C:\2002Projects\FBN\Ky\PHOTOS\EXISTING\" & Me.DESIGNATION & "-" & Me.PID & "-1.JPG"
[CON_PHOTO1].Action = acOLECreateLink
[CON_PHOTO1].SizeMode = acOLESizeStretch
DoCmd.GoToRecord , , acNext
[CON_PHOTO1].SourceDoc = " "
Next I
ERR_HAN:
If Err.Number = 2101 Or 2778 Then
Resume Next
Else: MsgBox (Err.Number & " " & Err.Description)
End If
Exit Sub
End Sub
Thanks,
Jerry