dbTalk Databases Forums  

rename

comp.database.ms-access comp.database.ms-access


Discuss rename in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rosie
 
Posts: n/a

Default rename - 02-13-2004 , 02:20 PM






Would someone please post the vb code on how to copy/rename a file
within access? I have a file c:\1stltr.ltr. I would like to rename it
to c:\letter1.dbf so I can link to it. Would I use a macro or module?
Thanks!!!!!

(As you can tell, I am a nubie!)

Reply With Quote
  #2  
Old   
Ira Solomon
 
Posts: n/a

Default Re: rename - 02-13-2004 , 05:16 PM






has to be in module.
Must be in function (not sub)

Function MakeDBF()
FileSystemObject.CopyFile "c:\1stltr.ltr", "c:\letter1.dbf", true
end function

You can't rename with this set of functions.
the true at the end of the statemnt allows overwrite.

Good Lock
Ira Solomon

On 13 Feb 2004 12:20:10 -0800, forrose (AT) hotmail (DOT) com (Rosie) wrote:

Quote:
Would someone please post the vb code on how to copy/rename a file
within access? I have a file c:\1stltr.ltr. I would like to rename it
to c:\letter1.dbf so I can link to it. Would I use a macro or module?
Thanks!!!!!

(As you can tell, I am a nubie!)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.