Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    528

    So what you do is turn it into a module?
    What is the solution

  2. #17
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Really? Try this. Change:

    Public Sub Backup(strSource As String, strTarget As String)

    to

    Public Sub BackupFile(strSource As String, strTarget As String)

    and change

    Call Backup("c:\Test\202.mdb", "c:\Test\ds\az.mdb")

    to

    Call BackupFile("c:\Test\202.mdb", "c:\Test\ds\az.mdb")
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #18
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    528
    Thank you very much pbaldy
    Gooooooood This He has worked well, such as what I said

  4. #19
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    No problem.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 05-15-2014, 09:59 AM
  2. Replies: 15
    Last Post: 11-01-2013, 03:24 PM
  3. Replies: 7
    Last Post: 07-24-2013, 02:01 PM
  4. Error message 'Error in Loading DLL'
    By rahayes in forum Programming
    Replies: 2
    Last Post: 09-22-2012, 05:17 AM
  5. Replies: 2
    Last Post: 06-23-2012, 11:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums