Results 1 to 5 of 5

Thread: Exporting mdb file

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2006
    Posts
    62

    Exporting mdb file

    Hi,
    In the project i want to implement export utility. when i click export, it should ask the file to be exported and to which folder. Please send me some example codes for this.

    regards
    Hiran

  2. #2
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Re: Exporting mdb file

    Just Wait 4 Few Minute

  3. #3
    PowerPoster Simply Me's Avatar
    Join Date
    Aug 2003
    Posts
    2,748

    Re: Exporting mdb file

    Quote Originally Posted by hiran3727
    Hi,
    In the project i want to implement export utility. when i click export, it should ask the file to be exported and to which folder. Please send me some example codes for this.

    regards
    Hiran
    Do you mean copy a file and have it save in a certain folder? If it is then you can use Filecopy and use a commondialog.
    To give is always to be NOBLE...
    To received is always to be BLESSED....
    Each day strive to be NOBLE
    Each day strive to be BLESSED

    If this post has helped you. Please take time to rate it.

    >=|+|=< Simply Me >=|+|=<

    ----------------------------------------
    Connection Strings | Number Only in Textbox | Splash Screen with Progress Bar | Printing to 1/2 of perforated bond paper |
    Freeze 2005 DataGridView Column

  4. #4
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Thumbs up Re: Exporting mdb file

    VB Code:
    1. Dim Fs
    2.  
    3. Private Sub CMDeXPORT_Click()
    4. Set Fs = CreateObject("SCRIPTING.FileSystemOBJECT")
    5.     FILENAME1 = App.Path & "\database\Salary_SYS.mdb" 'This Is Ur Database path
    6.  
    7.     Fs.COPYFILE Text1.Text, FILENAME1, 1
    8.     MsgBox "Database is Restored successfully ", vbInformation
    9.     End If
    10. End Sub
    11.  
    12. Private Sub Command1_Click()
    13. 'Add a commondialog control onur form
    14. CommonDialog1.Filter = "Microsoft Access Databases (*.mdb)"
    15. CommonDialog1.DefaultExt = "Microsoft Access Databases (*.mdb)"
    16. CommonDialog1.ShowOpen
    17. Text1.Text = CommonDialog1.FileName
    18. End Sub

  5. #5
    PowerPoster Simply Me's Avatar
    Join Date
    Aug 2003
    Posts
    2,748

    Re: Exporting mdb file

    or you can visit this thread
    To give is always to be NOBLE...
    To received is always to be BLESSED....
    Each day strive to be NOBLE
    Each day strive to be BLESSED

    If this post has helped you. Please take time to rate it.

    >=|+|=< Simply Me >=|+|=<

    ----------------------------------------
    Connection Strings | Number Only in Textbox | Splash Screen with Progress Bar | Printing to 1/2 of perforated bond paper |
    Freeze 2005 DataGridView Column

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width