Results 1 to 2 of 2

Thread: Data Report

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 1999
    Location
    BANGALORE,KARNATAKA,INDIA
    Posts
    4

    Post

    I have Set the DataEnvironment1's connection object (Connection1) to use the Microsoft.Jet.OLEDB.3.51 OLE DB provider.

    then i Browsed to the my.mdb database which is on the 'd:' drive on my machine, i tested the connection, and then saved it. its working fine.

    now , suppose i want to install this software on a machine on where there is no 'd:' , how can i do this.

    can i pass the .mdb file path to the environment at runtime.


    ------------------
    NA

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    you can put it on the C: drive (everyone has a c drive) or you can set the MDB location at load time by specifying:

    data.recordsource = app.path & "\datafile.mdb"

    you just have to make sure the database is in the same dir as the EXE

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