|
-
Sep 12th, 2000, 10:24 AM
#1
Thread Starter
Member
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.
-
Sep 12th, 2000, 10:41 AM
#2
What kind of a table is it? Excel? Multicolumn ListBox, ListView?
-
Sep 12th, 2000, 10:43 AM
#3
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.
-
Sep 12th, 2000, 11:03 AM
#4
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|