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 » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

how to update value



 
 
Thread Tools Display Modes
  #1  
Old June 28th, 2004, 07:03 PM
Jasmin Ouellet
external usenet poster
 
Posts: n/a
Default how to update value

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:


thanks !

  #2  
Old June 28th, 2004, 09:52 PM
Tim Ferguson
external usenet poster
 
Posts: n/a
Default how to update value

"Jasmin Ouellet" wrote in
:


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

 




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 another table with a Max record query Ngan Running & Setting Up Queries 2 June 22nd, 2004 05:01 PM
ie6 sp1 update fails->"wfp: unrecognized version" Beemer Biker Outlook Express 2 June 14th, 2004 10:36 PM
Can't update table from Form sara Using Forms 3 June 11th, 2004 02:12 PM
Why no update? Help! Brian New Users 1 May 6th, 2004 11:15 AM
Template Update Help ND Worksheet Functions 1 October 2nd, 2003 09:19 PM


All times are GMT +1. The time now is 07:35 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.