Results 1 to 3 of 3

Thread: ACCESS FORM an VB FORM

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Santo Domingo,D.N., Dom. Rep.
    Posts
    707

    Talking

    Does anyone know how can i execute ACCESS FORM FROM VB?

    P.D.: ACCESS 2000 can convert Your ACCESS APP into SQL and IT works FINE. This mean: ANY INFORMATION YOU ADD it is stored in a SQL TABLE. ANY QUESTION or SOMETHING I SHOULD KNOW?

  2. #2
    Addicted Member
    Join Date
    Oct 1999
    Location
    Brossard, Québec, Canada
    Posts
    241

    Thumbs up Here you go


  3. #3
    Lively Member
    Join Date
    Jul 2000
    Posts
    72
    real easy

    Dim appAccess As Access.Application
    Dim strDB As String
    Dim strconpathtosamples As String
    strconpathtosamples = App.Path & "\has.mdb"

    strDB = strconpathtosamples & "has.mdb"

    ' Create new instance of Microsoft Access.
    Set appAccess = _
    CreateObject("Access.Application")

    ' Open database in Microsoft Access window.
    appAccess.OpenCurrentDatabase strconpathtosamples

    ' Open Orders form.
    appAccess.DoCmd.OpenForm "Orders"

    'open report
    appAccess.DoCmd.OpenReport "Audiology Clinic Summary", acViewPreview

    appAccess.Visible = True
    VB 6 Professional Edition

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