A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Can an expression update a table, I know that in a form a query w.



 
 
Thread Tools Display Modes
  #1  
Old October 6th, 2004, 03:34 AM
04Ram
external usenet poster
 
Posts: n/a
Default Can an expression update a table, I know that in a form a query w.

I am trying to update a table using an expression in a form. The value comes
up correcly after all the data is entered. However, these fields do not show
up in the corresponding table. I need to know how to update my table and
still get the calculations correct.
  #2  
Old October 6th, 2004, 04:52 AM
Allen Browne
external usenet poster
 
Posts: n/a
Default

See:
Calculated fields
at:
http://members.iinet.net.au/~allenbrowne/casu-14.html
for an explanation of when and how to store a calculated result.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"04Ram" wrote in message
...
I am trying to update a table using an expression in a form. The value
comes
up correcly after all the data is entered. However, these fields do not
show
up in the corresponding table. I need to know how to update my table and
still get the calculations correct.



  #3  
Old October 6th, 2004, 07:09 PM
Tom Ross
external usenet poster
 
Posts: n/a
Default

In your query design you have to right mouse in the table area, select Query
Type and select 'update query' This is the tool to update the fields in a
table based on your expression

sample SQL
UPDATE Table2 SET Table2.Cost = [qty]*[unit];

Table2 has fields qty, unit,. cost as well as id, description etc

You can include a WHERE clause if you only want to update particular
records.


"04Ram" wrote in message
...
I am trying to update a table using an expression in a form. The value

comes
up correcly after all the data is entered. However, these fields do not

show
up in the corresponding table. I need to know how to update my table and
still get the calculations correct.



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Update a query to value in another table Tim Running & Setting Up Queries 1 August 13th, 2004 11:35 PM
Using an append query with an update query Joshua Schairbaum Running & Setting Up Queries 1 July 15th, 2004 02:22 AM
auto entry into second table after update Tony New Users 13 July 9th, 2004 10:42 PM
Update another table with a Max record query Ngan Running & Setting Up Queries 2 June 22nd, 2004 05:01 PM
surely a form with a ListBox can be used in a query? 1.156 Running & Setting Up Queries 14 June 2nd, 2004 04:54 PM


All times are GMT +1. The time now is 11:03 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.