Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access General > create primary ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 92464 of 97476
Post > Topic >>

create primary key from filename of .txt file

by =?Utf-8?B?bGFobWNj?= <lahmcc@[EMAIL PROTECTED] > Aug 6, 2008 at 10:46 AM

Hi,

I’m a novice with Access (2003), and right now I need some help.

I receive a fixed-length text file from the state on a daily basis that 
needs to be im****ted into an access table.  This table needs to have the
date 
it was received from the state as the primary key.  However, the state,
being 
the state (Alabama), does not include this as part of the record of the
file. 
 However, the needed date is part of the file name, as follows:

		4194400808040300.txt

			Or

		NSA8227051080804.txt

The 080804 being YYMMDD format.

I have created a crude macro that will im****t what I need to build my
table, 
with the exception being that primary key, whether it is the entire
filename 
or just the YYMMDD ****tion of the file name.

Is there a way I populate the primary key with as user prompt incor****ated

in my macro?

At this point, any help would be appreciated.

Thanks!

-- 
LH
 




 8 Posts in Topic:
create primary key from filename of .txt file
=?Utf-8?B?bGFobWNj?= <  2008-08-06 10:46:01 
RE: create primary key from filename of .txt file
=?Utf-8?B?S2xhdHV1?= <  2008-08-06 11:10:08 
RE: create primary key from filename of .txt file
=?Utf-8?B?bGFobWNj?= <  2008-08-06 11:44:01 
Re: create primary key from filename of .txt file
"pietlinden@[EMAIL P  2008-08-06 11:32:13 
Re: create primary key from filename of .txt file
=?Utf-8?B?bGFobWNj?= <  2008-08-06 12:22:01 
Re: create primary key from filename of .txt file
"Larry Linson"   2008-08-06 14:11:24 
Re: create primary key from filename of .txt file
=?Utf-8?B?bGFobWNj?= <  2008-08-06 12:20:01 
Re: create primary key from filename of .txt file
"Larry Linson"   2008-08-06 15:16:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 22:46:08 CST 2008.