I am trying to open a file in Access. I am in the correct folder location but I am unaware of the file name. In this case I would like to open the file with the extension of .htm. I have seen an example of excel but this doesn't seem to work for me:
FolderPath = GetSignature(Environ("Userprofile") & "\AppData\Roaming\Microsoft\Signatures\")
FileName = Dir(FolderPath & "*.htm")
While FileName <> ""
Workbooks.Open FolderPath & FileName
FileName = Dir()
Wend
Does anyone have any suggestions? Thanks in advance.