|
|
Getting form expression results to update to table.
The totals from the expressions in a couple fields on the form don't update
to the table. They (the expressions) work correctly in the form, but they
(the results of the expressions) don't appear on the table after clicking
Update All.
Does anyone know how ot fix this?
|
|
0
|
|
|
|
Reply
|
Utf
|
2/17/2008 7:51:00 AM |
|
Hi Peg,
First, forms don't contain fields. They contain controls (most commonly
textboxes) which may or may not be bound to fields in the form's
recordsource. If they are bound to a field, changing the data in the form
will change the underlying field in a table (unless the form's recordsource
happens to be a non-updateable query).
Alternatively, a textbox on a form can display the result of a calculation
(usually involving other fields from the form's recordsource). A textbox
cannot contain a calculated expression and be bound to a field. And, in
almost all cases, you should not be storing calculated fields in your
tables; simply display the calculation in a control in your form or report.
HTH,
Rob
"Peg" <Peg@discussions.microsoft.com> wrote in message
news:9DB3C495-C45C-463B-9BFE-49FEB7DDC0CD@microsoft.com...
> The totals from the expressions in a couple fields on the form don't
> update
> to the table. They (the expressions) work correctly in the form, but they
> (the results of the expressions) don't appear on the table after clicking
> Update All.
>
> Does anyone know how ot fix this?
|
|
0
|
|
|
|
Reply
|
Rob
|
2/17/2008 8:09:00 AM
|
|
Hi Rob...
Thanks for the explanation. I'm brand new to this process and I'm learning
as I go. Your reply "A textbox cannot contain a calculated expression and be
bound to a field." would have been useful information in the Help file. :-)
I was sort of using the Table like a spreadsheet, but now that I understand
the process better I see they're not interchangeable.
Thanks, yes, your explanation did help.
Peg
"Rob Parker" wrote:
> Hi Peg,
>
> First, forms don't contain fields. They contain controls (most commonly
> textboxes) which may or may not be bound to fields in the form's
> recordsource. If they are bound to a field, changing the data in the form
> will change the underlying field in a table (unless the form's recordsource
> happens to be a non-updateable query).
>
> Alternatively, a textbox on a form can display the result of a calculation
> (usually involving other fields from the form's recordsource). A textbox
> cannot contain a calculated expression and be bound to a field. And, in
> almost all cases, you should not be storing calculated fields in your
> tables; simply display the calculation in a control in your form or report.
>
> HTH,
>
> Rob
>
> "Peg" <Peg@discussions.microsoft.com> wrote in message
> news:9DB3C495-C45C-463B-9BFE-49FEB7DDC0CD@microsoft.com...
> > The totals from the expressions in a couple fields on the form don't
> > update
> > to the table. They (the expressions) work correctly in the form, but they
> > (the results of the expressions) don't appear on the table after clicking
> > Update All.
> >
> > Does anyone know how ot fix this?
>
>
|
|
0
|
|
|
|
Reply
|
Utf
|
2/17/2008 4:35:00 PM
|
|
|
2 Replies
409 Views
(page loaded in 0.11 seconds)
Similiar Articles: update form on change of field used in expression - microsoft ...Access-Update field in table from expression in form? - Tech ... Access-Update field in table from expression in form? ... the results of this expression be used to update ... Textbox in form that updates a table. - microsoft.public.access ...... in form that updates a table. - microsoft.public.access ..... the form to a table. ... exporting results ... field in form ... expression in form will not update table field update data from aggregate query - microsoft.public.access.queries ...If so, you should be able to update the table represented by the form ... to give him the aggregate query results ... that does not include specified expression ... update ... How to automatically populate a table with query results ...... in the Main table [Pricingdata] >field with results of the query Expression Field. > Change the query to an Update ... your query results in a form, you can use a table ... combo box on form to update different table - microsoft.public ...... display the message " Control can't be edited, it's bound to the expression ... Microsoft Access Help. Visit ASP Free to discuss Update table from form Text box?? Error 3144 syntax error in UPDATE statement - microsoft.public ...... getting an error message? Here is the code, I have Access 2003. I am trying to select the appropriate table to update ... expression - microsoft.public.access.forms ... results ... Running total on a form using DSum - microsoft.public.access.forms ...... types of mixes and i'm getting nowhere. The form im ... put this equation in an "on update ... try to swap out > > for the table name i keep getting an error, "The expression ... sum field from one query to update a field in a table - microsoft ...Form Field won't update two different tables - microsoft ... I have a from field that I added to a form. ... I want to total field values from a query and show the result ... data type mismatch in criteria expression - microsoft.public ...Data Type Mismatch in Expression - can I force a query to read as ... Hello, I have an update query with the simple criteria of 'Update Table ... Data Type Mismatch in Results ... How do I copy one table to another within a form - microsoft ...... this approach will produce the same results ... How do I copy one table to another within a form DataBase Hi, I am getting ready to release my second update to my database. UPDATE (Transact-SQL) - Microsoft Corporation: Software ...[ WITH <common_table_expression> [...n] ] UPDATE ... as common table expression (CTE), defined within the scope of the UPDATE statement. The CTE result set ... based on which form ... Working with Macros and Expressions in Access 2010Not only do the search results show ... code rather than to allow the table to update the ... Microsoft Access where you write expressions. Tables and fields, queries, form ... Using MS Access: forms to update table, recordsource, bound controlsUsing MS Access /forms to update table ... However, using a query as a recordsource could result in a noneditable query. ACC2000: How to Update a Table from a Second Table by Using an ...This article describes how to create a query that uses an expression to update a record in one table ... type of query does not work if the data being added is the result ... SQL UPDATE Statement - W3Schools Online Web TutorialsThe UPDATE Statement. The UPDATE statement is used to update existing records in a table. SQL UPDATE Syntax 8/1/2012 4:08:11 AM
|
|
|
|
|
|
|
|
|