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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update table from computed field.

Status
Not open for further replies.

priac

Technical User
Feb 8, 2002
47
US
How do I update my table from a computed value in text172. [Text172] is computed from =[text126]/[text134]
The update needs to be added to control source "loaded_arm" of [text172]
 

Generally, putting a calculated value into your table is not recommended because you would have to remember to change it whenever any of the fields it's derived from change. That being said, you should be able to use an update query....
Code:
dim strSQL as String
strSQL = "UPDATE yourTable SET fieldName = " & me.txt172 & " WHERE ..... "
DoCmd.RunSQL strSQL


Randy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top