|
-
Nov 7th, 2003, 05:15 PM
#1
Thread Starter
Lively Member
Access 2000 VBA File Search
Hi,
I have the following code:
Set fs = Application.FileSearch
With fs
.LookIn = "\\Desktop_Pub\Graphic Images\Head Shots"
.FileName = "*" & myid & ".jpg"
If Len(.FileName) > 0 Then
Me!Headshot = (I want this to be the exact file name)
End If
End With
How can I set Me!Headshot to the exact file name when the search is successful? .FileName uses a wildcard. I don't know what the code should be.
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|