christ2000
New member
- Local time
- Yesterday, 19:56
- Joined
- Jul 18, 2018
- Messages
- 7
hello guys, I was using the following code to check if some files exist in my windows folder or not. the problem is that the files must be check in a continuous subform and only the first records is update on the subform, so now I must click in each record to update the status,
is there any way to fix this and when form load all records are checked and and show exist or not?
this is the code I am using:
Private Sub MissDoc_Click()
docexist = "Doc. Exist"
missinvalue = "Doc. Missing"
cname = Forms![ContractorsDBForm]![Text442]
filename = Me.DocumentsName & ".pdf"
filepath = DLookup("[ContractorPath]", "querysetup") & cname & DLookup("[expr1]", "querysetup") & cname & " " & filename
If Dir(filepath) = "" Then
Me.MissDoc = missinvalue
Else
Me.MissDoc = docexist
End If
End Sub
thanks in advance, I could find any solution in any place for this:banghead:
is there any way to fix this and when form load all records are checked and and show exist or not?
this is the code I am using:
Private Sub MissDoc_Click()
docexist = "Doc. Exist"
missinvalue = "Doc. Missing"
cname = Forms![ContractorsDBForm]![Text442]
filename = Me.DocumentsName & ".pdf"
filepath = DLookup("[ContractorPath]", "querysetup") & cname & DLookup("[expr1]", "querysetup") & cname & " " & filename
If Dir(filepath) = "" Then
Me.MissDoc = missinvalue
Else
Me.MissDoc = docexist
End If
End Sub
thanks in advance, I could find any solution in any place for this:banghead: