Hi, at the moment i'm using a loop in Access, which counts the files in a directory by using the DIR-statement.
This works fine, only time consuming.
I wonder if I could use a Stored Procedure in SQL-server that would do the job for me faster?
If possible it would be nice to supply a mask like '*pk.doc', if not it's also ok.
It's just a matter of taking ½ the total number of files, as each '*pk.doc' file also has a '*pk.jpg'.
Thanks in advance.
Smitan
This works fine, only time consuming.
Code:
If Nz(Dir(strPKPath & "*pk.doc")) <> "" Then
i = 1
Do Until Nz(Dir) = ""
i = i + 1
Loop
End If
If possible it would be nice to supply a mask like '*pk.doc', if not it's also ok.
It's just a matter of taking ½ the total number of files, as each '*pk.doc' file also has a '*pk.jpg'.
Thanks in advance.
Smitan