Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / March 2006

Tip: Looking for answers? Try searching our database.

Read Only Attribute

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Deadeye - 31 Mar 2006 15:40 GMT
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)

Thank you very much in advance.
Dirk Goldgar - 31 Mar 2006 16:01 GMT
> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.