updating a different field 
Author Message
 updating a different field

I currently have a form which has several fields in it.  
What I would like to do is, on the exit on field 1 I
would like to put a numeric value in field 2. Problem is
field 2 is in the table but not the form.  How do I write
the code so that if the answer to field 1 (ie is home)
then field two automatically gets populated with the
number 1 inside the table?

Thanks
Dan



Sun, 10 Jul 2005 00:33:43 GMT  
 updating a different field
if field2 is in the same table - place it also on same form, but make it
hidden
and in field1 exit event set field2 value
if filed2 in other table - then you have to run update query

--
Alex Dybenko (MVP)
http://Alex.Dybenko.com


Quote:
> I currently have a form which has several fields in it.
> What I would like to do is, on the exit on field 1 I
> would like to put a numeric value in field 2. Problem is
> field 2 is in the table but not the form.  How do I write
> the code so that if the answer to field 1 (ie is home)
> then field two automatically gets populated with the
> number 1 inside the table?

> Thanks
> Dan



Sun, 10 Jul 2005 04:11:28 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Updating Fields with Different Values?

2. How to display different fields for different groups?

3. select box should show values from two different fields from different tables

4. Append memo field to a different memo field

5. Newbie - Access 97 - Full Name Field into 2 or three different fields

6. Using--After Update-- to update field in table.

7. Updating fields: footer doesn't update right

8. 2nd SQL Server update after update text field corrupts row - using RDO

9. Updating data to a memo field using SQL UPDATE

10. How to update datetime field with NULL using ADO update

11. Using Update to update an Access field

12. Use report fields to update table fields

 

 
Powered by phpBB® Forum Software