Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2003

    Unhappy Unanswered: How to write a fiel to a txt file

    Hallo everybody,

    I have created a access form with 4 fields.
    ex : name ,adress ,fax ,gsm

    When i am in this form ,i would to create a button who write's only the name and adress from this form to a text file.

    text file must be on first line name and second line the adress

    Who can help me ,its verry urgent.

    Kind regards

  2. #2
    Join Date
    Jul 2003
    Amsterdam, Nederland

    Lightbulb try this

    Try the CommonDialog controle
    and look in the help for futher information

  3. #3
    Join Date
    Aug 2003
    Delft, The Netherlands (EU)

    Re: try this

    You will have to write some VBA code. You sub should look like (the following code isn't tested!)

    dim f as integer
    let f=freefile()
    open <filename> for output as #f
    print #f, <Your name>
    print #f, <Your address>
    close #f

    Make everything as simple as possible, but not simpler! - A. Einstein
    DB Problems? DB Explorer, BTrieve Re-engineering, DB Conversions & ETL? Conversion Tool

Posting Permissions

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