A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Command Button Duplicate File



 
 
Thread Tools Display Modes
  #1  
Old October 25th, 2008, 04:55 AM posted to microsoft.public.access
COMP5G
external usenet poster
 
Posts: 1
Default Command Button Duplicate File

I have a command button duplicate file in the database, how can I get the
command button to duplicate the file into a different database, or datasheet?

It would be really helpful, if someone could help me out with this!
  #2  
Old October 25th, 2008, 07:49 AM posted to microsoft.public.access
Allen Browne
external usenet poster
 
Posts: 11,706
Default Command Button Duplicate File

You can duplicate a file with FileCopy.
Use Help in the code window for details.

If you are trying to duplicate the current file, doing this could give you
bad results. Several situations could give you locking errors, or the target
file may be bad (internally inconsistent.) Examples: forms are opened and
the data is being edited, reports or queries or recordsets that have locked
some tables, there are uncommitted transactions in progress, other users are
in the database, ...

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"COMP5G" wrote in message
...
I have a command button duplicate file in the database, how can I get the
command button to duplicate the file into a different database, or
datasheet?

It would be really helpful, if someone could help me out with this!


 




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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:15 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.