|
Pete
I think basically you have two
tables one for authors and the other for books. Create one query which should
include AuthorID, Books, etc. Then create a form bound to this query. You may
not need a query after all. The form may simply be bound to the Books table with
selected fields.
Create an unbound form and on it
place a combo box named say cmbAuthorID , then place the first form on it. The
combo box should lookup the values from the Authors Table and not the query. The
combo box may have fields like AuthorID, Surname, FirstName, Penname (from the
Authors table) but the bound field is AuthorID. Set the Link Master and
Link Child fields to AuthorID (AuthorID is the primary key in Authors table and
a foreign key in the Books table and should be present in the subform). You may
create another text box or label that displays Author's full names on the parent
form once the combo box gets updated. This should work for you.
Northwind database sample has very
good examples of subforms.
HTH
Liveson
Please zip all files prior to uploading to Files section.
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
- [AccessDevelopers] Forms and Subforms Pete Harrison
- [AccessDevelopers] Re: Forms and Subforms Pete Harrison
- Re: [AccessDevelopers] Forms and Subforms Liveson Tumbulu
- [AccessDevelopers] Re: Forms and Subforms Pete Harrison
- Re: [AccessDevelopers] Re: Forms and Subforms Liveson Tumbulu
- [AccessDevelopers] Re: Forms and Subforms Pete Harrison
- [AccessDevelopers] Re: Forms and Subforms Pete Harrison
- [AccessDevelopers] Re: Forms and Subforms Pete Harrison
