Results 1 to 3 of 3
  1. #1
    Silver Lounger GARYPSWANSON's Avatar
    Join Date
    Aug 2001
    Location
    Frederick, Maryland, USA
    Posts
    1,788
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Saving an Object from MS Project to MS Access (A2K SR1)

    In access, I am launching an MS Project Project via a browse feature and then want to convert the open MS Project Project to an Access Database. The code I am using is shown below. I am having a problem with the prjapp.FileSaveAs Name, , , , , , , , , MSProject.mdb8

    What is the correct code to do this?

    Dim prjapp As MSProject.Application
    Dim prjProject As MSProject.Project

    Name = "C:MSP"
    N = Forms!frmExplorer!lbxFiles.Value
    P = stPath & "" & N

    Set prjapp = CreateObject("Msproject.Application")
    prjapp.Fileopen P
    prjapp.Visible = True
    prjapp.FileSaveAs Name, , , , , , , , , MSProject.mdb8
    prjapp.FileCloseAll
    prjapp.FileExit
    Regards,

    Gary
    (It's been a while!)

  2. #2
    Silver Lounger GARYPSWANSON's Avatar
    Join Date
    Aug 2001
    Location
    Frederick, Maryland, USA
    Posts
    1,788
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Saving an Object from MS Project to MS Access (A2K SR1)

    The following works...

    prjapp.FileSaveAs Name:="<C:zzztest.mdb>zzztest", FormatID:="MSProject.MDB8"
    Regards,

    Gary
    (It's been a while!)

  3. #3
    4 Star Lounger
    Join Date
    Dec 2000
    Location
    Faifax, Virginia, USA
    Posts
    542
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Saving an Object from MS Project to MS Access (A2K SR1)

    you got it

Posting Permissions

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