Ashfaque
Search Beautiful Girls from your town for night
- Local time
- Tomorrow, 00:03
- Joined
- Sep 6, 2004
- Messages
- 897
Hello,
The below function I got from the forum. It was working in PC but now db shifted to laptop with same version of MS ACCESS giving below error msg;
"Run-time error 438"
Object doesnt support this property or method
Public Function LoadSnapshotFile(snpCtl As Object, strFilePath As String) As Boolean
Const conSnpFinishedDownload As Integer = 4
With snpCtl
.SnapshotPath = strFilePath
Do While .ReadyState < conSnpFinishedDownload
DoEvents
Loop
If .Error = 0 Then
LoadSnapshotFile = True
Exit Function
Else
MsgBox "Error loading snapshot file", _
vbOKOnly, "Snapshot Error = " & .Error
LoadSnapshotFile = False
End If
End With
End Function
Alongwith other ref files, I already have selected Snapshot viewer control and the actual snapshot file called R_Stock is also already available at the destination.
Can somebody tell me why it is not working.
Thanks.
Ashfaque
The below function I got from the forum. It was working in PC but now db shifted to laptop with same version of MS ACCESS giving below error msg;
"Run-time error 438"
Object doesnt support this property or method
Public Function LoadSnapshotFile(snpCtl As Object, strFilePath As String) As Boolean
Const conSnpFinishedDownload As Integer = 4
With snpCtl
.SnapshotPath = strFilePath
Do While .ReadyState < conSnpFinishedDownload
DoEvents
Loop
If .Error = 0 Then
LoadSnapshotFile = True
Exit Function
Else
MsgBox "Error loading snapshot file", _
vbOKOnly, "Snapshot Error = " & .Error
LoadSnapshotFile = False
End If
End With
End Function
Alongwith other ref files, I already have selected Snapshot viewer control and the actual snapshot file called R_Stock is also already available at the destination.
Can somebody tell me why it is not working.
Thanks.
Ashfaque