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 / Forms Programming / July 2007

Tip: Looking for answers? Try searching our database.

Linking tables with forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Belgarion - 09 Jul 2007 15:23 GMT
Hi, I'm still a relative beginner with Access, but I've not done too
bad :P

However, I'm finding one thing very confusing.

Here's the scenario: I am writing a multi table db, and I need to link
them all up via an index, so one form can easily display data from the
others.

For example: I need to display a name, located from one table, and
then in a seperate table, store values from yet other tables.

For some reason, I am finding this a little bit of a pain to do - I
can't seem to get the values loaded correctly.  It's no problem if
they are simply from a table, but the problem I have is when I need to
show a combo list of values DEPENDING on the value of one of the other
combo's on the same form.  That combo would pull data from other
tables, and store them in the new table.

I am pretty sure this is rudimentary - I just can't see where I'm
going wrong.  I don't expect a long tutorial on how to do this, but
could someone point me in the right direction?

Ta.
Damon Heron - 09 Jul 2007 16:56 GMT
A simple answer is to make the rowsource of your second combobox select
items based on the result of the first combobox
Here is an example- modify to your naming structure:

SELECT Yourtbl.ID, Yourtbl.Name, Yourtbl.LocID, Yourtbl.Notes FROM Yourtbl
WHERE (((Yourtbl.ID)=[Yourfirstcbo].[value]))
ORDER BY Yourtbl.Name;

Damon

> Hi, I'm still a relative beginner with Access, but I've not done too
> bad :P
[quoted text clipped - 20 lines]
>
> Ta.
 
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.