Results 1 to 4 of 4

Thread: variable/data

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2000
    Posts
    34
    If I have a table with 4 columns, all are text, how would I get the data from the 4th column into a variable using the 1st column as a reference.

    For example:
    cnum, cname, addy, IPs
    -----------------------
    1234, bob, 321 st, 1.1.1.1

    I need to get a variable to contain 1.1.1.1 if cnum=1234

    I don't think it's too tough, I'm just stuck.

  2. #2

  3. #3
    Guest
    It looks like you've got a .csv file (comma-separated text). If so, you can set up an ODBC datasource using the "Microsoft Text Driver" and then search the file with regular SQL commands. When that file gets large, this will be more efficient than trying to parse it yourself.

  4. #4

    Thread Starter
    Member
    Join Date
    Sep 2000
    Posts
    34
    It is a standard MS Access table created from design view... nothing special... the commas are not real separators, I probably shouldn't have used them for my example.

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