Chat with a LIVE Microsoft Access Expert!
 
       
 

         

   

Go Back   Access World Forums > Microsoft Access Discussion > Tables

 
 
Chat with a LIVE Microsoft Access Expert!
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-01-2007, 06:47 AM
tobert tobert is offline
Registered User
 
Join Date: Aug 2007
Posts: 2
tobert is on a distinguished road
Replacing Cell Value in a Table

OK, here is my situation. I have an access database which is updated automatically every night with new data. My companies solution to this is each morning, the entire database is downloaded to my computer to be used by another application.

In one of the tables, there is a field that doesn't work for my purposes, so each day I have to manually open the table, and change the contents of that field for every record. For example, lets say I have the following table:

Field1 Field2 Field3 Field4
Rec1 Wigets Faucet Model1A
Rec2 Wigets Faucet Model1B
Rec3 Wigets Sink Model1A
Rec4 Wigets Sink Model1B
Rec5 Wigets Toilet Model1A

Each day I manually change Field2 so it reads "Total" and whatever is in Field2:

Field1 Field2 Field3 Field4
Rec1 Total Faucets Faucet Model1A
Rec2 Total Faucets Faucet Model1B
Rec3 Total Sinks Sink Model1A
Rec4 Total Sinks Sink Model1B
Rec5 Total Toilets Toilet Model1A

Each morning when I receive the new database download, they all go back to widgets.

Is there a macro or module I can create to automatically look at Field3, and then assign a new value to Field2 based on Field3's value?

Any help would be appreciated!!!!
Reply With Quote
Sponsored Links
  #2  
Old 08-01-2007, 07:18 AM
Rabbie's Avatar
Rabbie Rabbie is offline
AWF VIP
 
Join Date: Jul 2007
Location: In Exile in Wiltshire
Posts: 4,658
Rabbie has a spectacular aura aboutRabbie has a spectacular aura aboutRabbie has a spectacular aura about
Run an Update Query to change Field2 to "Total " & Field3

That should do what you want. For more information look up "Update Query" in Access Help
Reply With Quote
  #3  
Old 08-01-2007, 07:49 AM
tobert tobert is offline
Registered User
 
Join Date: Aug 2007
Posts: 2
tobert is on a distinguished road
Quote:
Originally Posted by Rabbie View Post
Run an Update Query to change Field2 to "Total " & Field3

That should do what you want. For more information look up "Update Query" in Access Help
That does work, however, then everytime my database is updated, the Update Query is deleted....is there a way to turn my "Update Query" into an external file or an executable file that I can run each morning after my update?
Reply With Quote
  #4  
Old 08-01-2007, 07:56 AM
KeithG's Avatar
KeithG KeithG is offline
AWF VIP
 
Join Date: Mar 2006
Location: Illinois
Posts: 2,586
KeithG will become famous soon enoughKeithG will become famous soon enough
you could create another access db and link the table to the new db and write your query in the new db. This will work as long as the db is saved to the same location with the same name each morning.
__________________
If my post has helped you solve your problems please add to my reputation. Click the scale in the top right side of this post.
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes 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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to update number field in "many" table from autonumber field in "one" table sueviolet Forms 3 11-22-2009 03:14 AM
Newbie needing Help MikeyBoi General 5 04-17-2006 02:32 AM
Query to fill in blanks within a table? Maybe some other way? robjones23 Queries 11 03-21-2005 03:10 AM
Help with Relationships and table design: Bill Harrison Tables 7 01-12-2005 06:44 AM
Creating a form that updates a table, only if data is not already in the table vexing Forms 1 04-26-2001 10:52 AM


All times are GMT -8. The time now is 08:33 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) copyright 2009 Access World