Tina
I have created the two forms that contain the data - the heading info
and the related subheading info
I set up another 2 tables with empty fields for entering the heading
and subheading data into respectively.
I created a form to show the heading and related subheadings - so far
so good
I created a form to enter the data into the new table.
The main form is entitled " heading". The subform is entitled
"subheading"
I changed the text boxes to combo boxes
I ensured that the Linkmaster and Linkchild settings were as suggested
I set up a query whereby the value that appeared in the combo box for
the heading would drop down to all the headings and I click on that.
When I get to the subheadings I am still getiing all the subheadings -
not just the ones that relate to the particular heading.
Sorry to be such a nuisance - I spent all afternoon trying to figure
this one out. I am sure the answer is simple
Cheers
DJH
don't do any of that at the *table* level. tables should not be used for
data entry or display. tables simply store data. in Access, *forms* are the
proper tools for viewing/entering/editing data. also, see
http://home.att.net/~california.db/tips.html#aTip6 and
http://home.att.net/~california.db/tips.html#aTip8 for more table
recommendations.
hth
DJH said:
Sorry
I must be REALLY thick
I have the main form and the subform set up ok and the Heading and
subheading related references appear.
Now I want to set up another table that will lookup the Heading fields
and then allow me to enter them in and lookup the related subheading
fields and enter them in. At the moment I can do the Heading fields on
the table but all the subheading fields (related and unrelated) appear
in the lookup list.
Then (sorry to be a nuisance) I want to put that table into a form so
I can do all that from the form
Cheers
DJH
LinkMaster and LinkChild properties are set by opening your main form in
design view, selecting the subform control, opening properties and
going
to
the Data tab.
Setting these properties should take care of your problem!
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
Over 1175 users have come to me from the newsgroups requesting help
(e-mail address removed)
Thanks
That works just fine.
Could you please tell nme where I set up the LinkMaster and LinkChild
Fields.
However the problem still remains in setting up the table where I look
up the heading in one field and then try to find the related
subheadings in another. I still seem to get all the subheadings.
Do I do this by setting up a query or something.
Cheers
DJH
If you set up the tables Tina suggested then you need a form/subform
system.
The main form should be based on TblHeadings and the subform based on
TblSubHeadings. Once you have this system built, open the main form in
design view and make sure the LinkMaster and LinkChild fields are both
HeadID. You will then get what you want. When you navigate to any Heading
in
the main form, the subform will automatically list the SubHeadings for
that
Heading.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
Over 1175 users have come to me from the newsgroups requesting
help
(e-mail address removed)
Thanks Tina
Just a couple of things
How do I edit the relationship to read "lHeadings.HeadID 1:n
tblSubHeadings.HeadID"
It is the "..1:n" that I am unsure about
Even so I created a table where the heading appears in one box and a
list of the subheadings under that. So far so good.. I click through
the various headings and the subheadings appear. Great!! Many thanks.
What I want to do now is create a table whereby I can lookup the
Headings table to get a heading for one fielld (say we call it
SelectHeading) and then lookup the subheadings table to get the
entries that correspond to the selected heading in the heading field
so that I can put the entry in a second field (say SelectSubHeading).
I have got as far as lookingup the heading and getting that right.
However in the subheading field I get ALL the subheadings for the
various headings.
Once I get that right then I can relate the SelectHeading and the
SelectSubheading to an article or book reference
Cheers
DJH