Thanks in advance!
Dwight
I believe the function's name is FileDateTime. Look for it in the
online help in the VB Editor.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
Another alternative is to use FSO (FileSystemObject) from the scripting
library (scrrun.dll)
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(No private e-mails, please)
"Dwight" <anon...@discussions.microsoft.com> wrote in message
news:1687e01c4175d$523b4570$a401...@phx.gbl...
Ah, I understand now. Apparently Doug Steele does. :-)
That's what I use at the bottom of my web site pages like http://www.scobiz.com/Calendar.asp and
http://www.scobiz.com/Presentations.asp.
You need to set a reference to "Microsoft Scripting Runtime" in VBA or use late binding.
For time's sake, I just copied the VBScript from my ASP. (It uses late binding.) You shouldn't have any problem cleaning it up for
VBA.
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile(Server.MapPath("Presentations.asp"))
datDateCreatedASP = objFile.DateCreated
datDateLastModifiedASP = objFile.DateLastModified
datDateLastAccessedASP = objFile.DateLastAccessed
Good luck.
--
Sco
M.L. "Sco" Scofield, MCSD, MCP, MSS, Access MVP, A+
Useful Metric Conversion #16 of 19: 2 monograms = 1 diagram
Miscellaneous Access and VB "stuff" at www.ScoBiz.com
"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message news:%23$LVCS2FE...@TK2MSFTNGP10.phx.gbl...