T
T''Kai
I have this code running on several mdes. It shows the photo a client when
the users navigate to a record. Could this code and the manner in which I
show photos be causing the database to grow exponentially and cause
corruption. Today I compacted this database at 7am was 61.1 MB at noon it
was 73. 8 MB.
This has be going on for quite sometime. If I don't compact the database at
least 2 to 3 times a week it will crash. For some reason the only table that
crashes is the "Demographics" table. This table when corrupt will show #
signs in all the fields of the corrupted record. There are no memo fields or
self-joins.
The code is this:
strFindPhoto = "\\Server1\Error Logs\client_photos\" & Me.File & ".BMP"
'"\\Server1\Error Logs\client_photos\" & Me.File & ".BMP"
'C:\Documents and Settings\rozannea\Desktop\Shared Laptop\NECHV\client_photos
If Len(Dir(strFindPhoto)) > 0 Then
Me.imgPhoto.Picture = strFindPhoto
Else
Me.imgPhoto.Picture = "\\Server1\Error Logs\client_photos\0.BMP"
'"\\Server1\Error Logs\client_photos\0.BMP"
End If
Any help would be appreciated. Thank you.
the users navigate to a record. Could this code and the manner in which I
show photos be causing the database to grow exponentially and cause
corruption. Today I compacted this database at 7am was 61.1 MB at noon it
was 73. 8 MB.
This has be going on for quite sometime. If I don't compact the database at
least 2 to 3 times a week it will crash. For some reason the only table that
crashes is the "Demographics" table. This table when corrupt will show #
signs in all the fields of the corrupted record. There are no memo fields or
self-joins.
The code is this:
strFindPhoto = "\\Server1\Error Logs\client_photos\" & Me.File & ".BMP"
'"\\Server1\Error Logs\client_photos\" & Me.File & ".BMP"
'C:\Documents and Settings\rozannea\Desktop\Shared Laptop\NECHV\client_photos
If Len(Dir(strFindPhoto)) > 0 Then
Me.imgPhoto.Picture = strFindPhoto
Else
Me.imgPhoto.Picture = "\\Server1\Error Logs\client_photos\0.BMP"
'"\\Server1\Error Logs\client_photos\0.BMP"
End If
Any help would be appreciated. Thank you.