I had a filesearch function in Access 2000, I've tried various things in 2010 and have had no luck. I look to see if a trigger file exist, if it does the program proceeds, if not, I show a warning and close the process (shown below). Is there an easy method to do this in 2010?
Set fs = Application.FileSearch
'Looks for the trigger file before it copies the files to C:\xxxxxx
With fs
.Lookin = "\\Path\CCCC\VVVV\BBBBB\NNNNNN"
.FileName = "K6empsts.trg"
If .Execute > 0 Then
Else
'DoCmd.OpenForm "NoTrigger", acNormal, acPreview
End If
Thanks.
Thanks for the help.
Greg
Set fs = Application.FileSearch
'Looks for the trigger file before it copies the files to C:\xxxxxx
With fs
.Lookin = "\\Path\CCCC\VVVV\BBBBB\NNNNNN"
.FileName = "K6empsts.trg"
If .Execute > 0 Then
Else
'DoCmd.OpenForm "NoTrigger", acNormal, acPreview
End If
Thanks.
Thanks for the help.
Greg