dcsimg
Results 1 to 8 of 8

Thread: How can I use a specified information saved in a text file?

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2007
    Posts
    39

    Question How can I use a specified information saved in a text file?

    I have a program that uses this code to write the info entered by the user in a text file:

    Private Sub Command1_Click()
    n = Text1.Text
    a = Text2.Text

    Open "h:\RECORDS.txt" For Append As #7
    Write #7, n, a
    Close #7

    MsgBox "Done!"

    End Sub
    I am using this code to put the first field (na) of info of the text file in a combobox:

    Private Sub Command2_Click()
    Open "h:\RECORDS.txt" For Input As #3
    Do While Not EOF(3)
    Input #3, na, ag
    Combo1.AddItem na
    Loop

    Close #3
    How can I make my program so it only goes to the next form (ex. form2) when the second field of info (ag) in the text file is entered in the second textbox (a)?
    Last edited by incognito_301; Nov 5th, 2007 at 07:47 PM.

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width