Results 1 to 4 of 4

Thread: MS VB and Access... and the MultiLine Text box

  1. #1
    Ive got 10/40w for blood... THCi's Avatar
    Join Date
    Jul 2003
    Location
    Somewhere, sometime, dunno why though.
    Posts
    512
    Thanks
    0
    Thanked
    0 times in 0 posts

    MS VB and Access... and the MultiLine Text box

    Hiya folks,

    Ive got to do a small project for my computing course, Its been going well. But, now Im stuck. Ive obviously searched google but had no luck there.

    What I want to do is read each line of a multi-line text box into a database, creating a new entry within the table for each file found. Does anybody know of a way to do this?

    Or, is there a way to use a list box, as when I select the file, I want to be able to play it, and edit details about it as well.

    Any help muchly appreciated!

    Nath'
    Last edited by THCi; 17-03-2004 at 12:46 AM.

  2. #2
    Senior Member Shad's Avatar
    Join Date
    Jul 2003
    Location
    In front
    Posts
    2,782
    Thanks
    23
    Thanked
    42 times in 25 posts
    Quote Originally Posted by THCi
    What I want to do is read each line of a multi-line text box into a database, creating a new entry within the table for each file found.
    Read that line back to yourself and explain it again - where did the files bit come from??
    Simon


  3. #3
    Pixel Abuser Spunkey's Avatar
    Join Date
    Nov 2003
    Location
    Milton Keynes
    Posts
    1,523
    Thanks
    0
    Thanked
    0 times in 0 posts
    hello!
    to split a multiline text box by line try the following code mate;

    Code:
    egg = Split(Text1.Text, vbCrLf)
    For i = LBound(egg) To UBound(egg)
      MsgBox (egg(i))
    Next i

  4. #4
    Ive got 10/40w for blood... THCi's Avatar
    Join Date
    Jul 2003
    Location
    Somewhere, sometime, dunno why though.
    Posts
    512
    Thanks
    0
    Thanked
    0 times in 0 posts
    thanks dude, worked like a treat!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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