Simple q: setting the value of one field based on a form selection
From: Dave Linsalata (DaveLinsalata_at_discussions.microsoft.com)
Date: 02/05/05
- Next message: Bompi: "Re: Problem with Listbox search"
- Previous message: Bompi: "RE: Problem with Listbox search"
- Next in thread: John Vinson: "Re: Simple q: setting the value of one field based on a form selection"
- Reply: John Vinson: "Re: Simple q: setting the value of one field based on a form selection"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 5 Feb 2005 08:05:03 -0800
Hey all,
Newbie to VBA who is struggling along, but I've run into a minor (but
simple) problem. I have a form that lists a number of columns from a table.
One of the columns is uses a lookup function. I want to be able to change
the value of another column based on the first column. Example:
Table:
Col 1 - Shape
Col 2 - Color (lookups to: red, green, blue)
Col 3 - Has color (bool)
Form lists all tables.
User goes to row 1 ("Circle") and changes the blank 'color' field to "Red".
Access then sets 'has color' to "Yes."
**or**
User goes to row 1 ("Circle") and changes the 'color' field from "Red" to
blank.
Access then sets 'has color' to "No."
I've been trying to put (ugly) code in pretty much every event handler field
that seems relevant, but I can't get it going. Any help - even just
guildelines saying "use AfterUpdate and look up help on [codenamehere]"...
Thanks!
Dave
- Next message: Bompi: "Re: Problem with Listbox search"
- Previous message: Bompi: "RE: Problem with Listbox search"
- Next in thread: John Vinson: "Re: Simple q: setting the value of one field based on a form selection"
- Reply: John Vinson: "Re: Simple q: setting the value of one field based on a form selection"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|