PC Review


Reply
Thread Tools Rate Thread

Auto update a field or cell

 
 
=?Utf-8?B?UEc=?=
Guest
Posts: n/a
 
      1st Feb 2006
I have 160 files (txt) that I need to update just one field (some times 2 to
5) and then send to our customers each month. The field is a number but I'm
keeping it in txt form. I can import the files but then how do I sent up a
form (or something) that all I have to do is enter my data and it will update
all 160 files?
I would then export the data back to txt and send to the cusotmer.
Need to update .2730 (field) each month some time .1420 (feild).
source
FSC 001 **** *** R W 000001.00 000001 0000.2730 + H Y

FSC 002 **** *** C M 000000.00 000000 0001.0000 + H Y

FSC 005 **** 001 R B 000001.00 000001 0000.1420 + H Y


New be
 
Reply With Quote
 
 
 
 
John Vinson
Guest
Posts: n/a
 
      1st Feb 2006
On Tue, 31 Jan 2006 16:30:26 -0800, "PG"
<(E-Mail Removed)> wrote:

>I have 160 files (txt) that I need to update just one field (some times 2 to
>5) and then send to our customers each month. The field is a number but I'm
>keeping it in txt form. I can import the files but then how do I sent up a
>form (or something) that all I have to do is enter my data and it will update
>all 160 files?
>I would then export the data back to txt and send to the cusotmer.
>Need to update .2730 (field) each month some time .1420 (feild).
>source
>FSC 001 **** *** R W 000001.00 000001 0000.2730 + H Y
>
>FSC 002 **** *** C M 000000.00 000000 0001.0000 + H Y
>
>FSC 005 **** 001 R B 000001.00 000001 0000.1420 + H Y
>
>
>New be


You'll need some VBA code to do this. I would suggest that you have
one 160-row table with the names of all your files, e.g. a text field
containing

"K:\CustomerData\Files\File35.txt"

or whatever your names are.

You would then have a second table with fields matching the text file
fields - if the above is a true sample, twelve fields.

You'll then need VBA code to loop through the table of filenames; run
a delete query emptying the second table; use TransferText to import
the data into it from the current file; run an Update query to update
the field; and then use TransferText to write it back out.

Is 0000.2730 one field or two? How do you decide what needs updating
and to what? You could certainly use an unbound Form to enter the
updates.

It's going to be a bit complex but Access can certainly do this for
you.

John W. Vinson[MVP]
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
auto update text in cell b as date in cell a changes =?Utf-8?B?cGVvcmlhaW5mbw==?= Microsoft Excel Programming 2 19th Sep 2007 08:26 PM
auto-hide rows, cell format (# and @), update cell refs, shade cel =?Utf-8?B?TW8y?= Microsoft Excel Misc 0 17th Apr 2007 03:44 AM
Auto Update Field =?Utf-8?B?YmFtZg==?= Microsoft Access Forms 5 16th Mar 2006 02:13 PM
Auto Update of a field referencing to a field in another workbook =?Utf-8?B?Q2FtcGVyIEpvZQ==?= Microsoft Excel Worksheet Functions 1 14th Feb 2006 06:14 PM
Auto update a field based on another field =?Utf-8?B?SmVzcw==?= Microsoft Access Forms 6 12th Sep 2004 07:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:32 AM.