Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Database Design / June 2004

Tip: Looking for answers? Try searching our database.

how to update value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jasmin Ouellet - 28 Jun 2004 19:03 GMT
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:
jasmin.ouellet@sonepardis.ca

thanks !
Tim Ferguson - 28 Jun 2004 21:52 GMT
> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.