Results 1 to 5 of 5

Thread: Generating new file from mdb database in VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 1999
    Posts
    3

    Post

    Hi

    Any tips for generating a new prd-file (own file type) from a mdb database (Access)? prd- file consists of variables and check-sums that are separated by ASCII 32 and ASCII 10.

    I know how to make a mdb database from a prd-file, but is there any (easy) way to do this?

    Thanx,
    Elliina (by the way, She ;-))

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

    Post

    Can you create this file by exporting tables from MS Access? If so, try these steps, they have always worked for me:

    1) create a macro in access that does what you want it to

    2) convert macro to visual basic (command in Access)

    3) copy vba code to visual basic

    4) add reference to Access x.0 object library (whatever version, must be 8 (97) or higher i believe)

    5) create object in code and use the VBA you copied from step 3

    HTH

    Tom

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 1999
    Posts
    3

    Post

    Well, I'd better try this one. Any other ideas?

    ~Elliina~

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

    Post

    what is ascii 32 and ascii 10?

  5. #5

    Thread Starter
    New Member
    Join Date
    Oct 1999
    Posts
    3

    Post

    ASCII 32 = space bar
    ASCII 10 = linefeed

    ~Elliina


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