> I am trying to move a file from one drive to another and need to make
> the moved file a read only version. How do I do this?
> This is where I am at the moment:
> Name ("T:\Users\" & CurrentUser() & "\" & Me.lstImportFiles) As
> (strnewroot & strfilename)
Check out the SetAttr statement in the VB online help. I believe you'd
need a statement like this:
SetAttr strnewroot & strfilename, vbReadOnly

Signature
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
Deadeye - 31 Mar 2006 16:38 GMT
Dirk,
Thank you. It works as follows:
SetAttr (strnewroot & strfilename), vbReadOnly
Haave a great weekend.
> > I am trying to move a file from one drive to another and need to make
> > the moved file a read only version. How do I do this?
[quoted text clipped - 6 lines]
>
> SetAttr strnewroot & strfilename, vbReadOnly