how to update value

J

Jasmin Ouellet

Actually, my question is probably very simple, but I
can't figure out where/how to do it !

Here is my problem:

I have a table, with a field called "item" and another
one called "description"

In a form, I have a combo box (called "combo1"), that let
you choose an item from the "item" field. I want a text
box (called "description1") (or other object) to display
the description ( from the "description" field)
corresponding to value choosen in the combo box.

I wrote something similar to : (select [description1]
from [test]![description] where [combo1] = [test]!
[item]) this is placed in the "after update" of
my "combo1" object..

You guessed it, "test" is the name of the table !

If you have a solution, I'll be more than happy to hear
from you . if you have an example, feel free to send it
to me !

please send any reply to my E-mail address:
(e-mail address removed)

thanks !
 
T

Tim Ferguson

I wrote something similar to : (select [description1]
from [test]![description] where [combo1] = [test]!
[item]) this is placed in the "after update" of
my "combo1" object..

I don't completely understand what you are trying to do, but it sounds as
if you are planning to insert the Test.Description value into another
table. Well, DON'T! In the words of Another, "Access is a relational
database, use it relationally". The main table holds the key to the test
table only: when you want to see the test.description value you join the
tables together in a query. That way, the .Description value is only held
in the database once, so when you need to change it or correct it, you only
have to do that once, rather than having to search the entire mcguffin for
it. If you see what I mean.

Hope that helps


Tim F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top