Automattic
New Member
- Joined
- Mar 22, 2011
- Messages
- 14
I'd like to use docmd.transfertext to pull data from a series of text files into an access table. Here's my problem, each site has a semi-unique ordering of each parameter. So for example, the sixth field might be "discharge" or it might be "precipitation", but either way the "discharge" field is labeled the same way each time. With a static import specification file i'm finding that the fifth field is being loaded/labeled the same way no matter what's in that column.
I could do a decision tree of if/then statements to choose the appropriate Import Specification file, but I'm hoping there's a different way.
Example data:
http://waterdata.usgs.gov/nc/nwis/uv?cb_00060=on&cb_00045=on&format=rdb&period=1&site_no=02142000
http://waterdata.usgs.gov/nc/nwis/uv?cb_00060=on&cb_00065=on&format=rdb&period=1&site_no=02142000
http://waterdata.usgs.gov/nc/nwis/u...00045=on&format=rdb&period=1&site_no=02142000
Does this make sense?
-A
I could do a decision tree of if/then statements to choose the appropriate Import Specification file, but I'm hoping there's a different way.
Example data:
http://waterdata.usgs.gov/nc/nwis/uv?cb_00060=on&cb_00045=on&format=rdb&period=1&site_no=02142000
http://waterdata.usgs.gov/nc/nwis/uv?cb_00060=on&cb_00065=on&format=rdb&period=1&site_no=02142000
http://waterdata.usgs.gov/nc/nwis/u...00045=on&format=rdb&period=1&site_no=02142000
Does this make sense?
-A