MS Access ?: How to pull information into a table from another linked table -
new access. trying create db wedding. have 1 table listing individual guest names/addresses/etc.:
(see picture titled "guests")
and second 1-to-many table called "invitations" gives id, reference name, , formal name each intended invitation:
(see picture titled "invites")
then, each guest linked 1 of "invites" through lookup invite table:
(see picture titled "links")
in perfect world, after linking guests invitation, number_invited field populate number of linkages, , invite address information populate address of 1 of linked.
right can @ guests list , see guests, individual addresses, , invite each linked, prefer able print list of unique invitations (basically "invites" table), , have address information filled in know write on each envelope (ie, formal "invitation_title" , respective address).
i realize may asking tables more they're supposed to, , need sort of report or terrible db design in general. again, i'm new access , have no 1 ask. apologize having ask i'm sure simple question absolutely appreciate help!
any help/guidance/suggestions/recommendations appreciated!!
i can't details because don't have database design.
need try design query joins needed tables , part say, "but need able to..."
said "unique invitations" need group query.
grab nice hot cup of coffee, sit down, , let's begin.
lay out table architecture.
need 3 tables.
1. [tbl_guest] contains 1 record per human.
2. [tbl_invitation] contains 1 record per deliverable invitation.
3. [tbl_party] contains 1 record per guest-to-invitation link.
1 http://electronrock.com/temp/public/pic001.png
create bare-bones query links 3 tables.
1 http://electronrock.com/temp/public/pic002.png
run query.
1 http://electronrock.com/temp/public/pic003.png
create bare-bones query counts total number of guests per-invitation.
1 http://electronrock.com/temp/public/pic006.png
run query.
1 http://electronrock.com/temp/public/pic008.png
and there have it.
number of guests number of records in [tbl_guest], provided said guest present in [tbl_party].
number of envelopes calligrapher draw artful lettering on number of records in [tbl_invitation].
heart of thing [tbl_party] links 1 or more guests 1 invitation.
ok collapse down 2 tables, putting field [invitationid] inside [tbl_guest] don't way because primary purpose of [tbl_guest] list people, not map people invitations.
Comments
Post a Comment