Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update field with single row of info

Status
Not open for further replies.

topdesk123

Programmer
Sep 27, 2001
76
US
Good morning all!

I have a text file that I import into Access 2003. The first line of the text file contains the date the email was sent and the project name. The following rows contain the email addresses and status (success, failed, etc). I'm trying to figure out how to update each record (email address, status) with the date and project name.

The table looks like this:

Email Status Project Date Req ID
Mailer 1/19/2005
Project testemail
email1@server.com: success 2
email1@server.com: success 3
email1@server.com: success 4
email1@server.com: success 5
email1@server.com: success 6

Any thoughts would be much appreciated!
 
topdesk123,

You could create a link to your text file using TransferText.

Code:
 DoCmd.TransferText acLinkFixed, ,<TableName>, strFile, <HasFieldNames>

Reading the file, you can then (using string fuctions) "retrieve" your date from the string. From there perform an update query (with the value retrieved) to your table.

Hey just an idea...

[thumbsup2]






 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top