G
Guest
I have been struggling with this for sometimes. I have main table (tblPerson)
and Event table (tblEvents) where I want to store events, FY and check box to
"Invite"
tblPerson (personID, Name)
tblEvent (InviteesID, personID, FY, EventCode, Invite)
each person can be invited to a many events so, I have id field (InviteesId)
in tblEvent.
SELECT tblInviteesList.InviteesID,
tblInviteesList.personID,tblProtocol.LastName, tblProtocol.FirstName,
tblInviteesList.FY, tblInviteesList.EventCode, tblInviteesList.Invite
FROM tblInviteesList RIGHT JOIN tblProtocol ON tblInviteesList.personID =
tblPerson.personID
ORDER BY tblperson.LastName, tblperson.FirstName;
I've created the continuous form from above SQL where I want to list all the
records from the "tblPerson" and user selects the Event from previous form
and check box to "Invite" and save the data. The problem is the sql above
always brings entire list of previous saved events. I know my SQL is not
correct and i've tried other ways but with no success.
scenario:
if it's new event, list everyone from tblPerson with unchecked "Invite"
If created event, list everyone from tblPerson and list "EventCode", checked
"Invite" so, user can modify the invitees list
and Event table (tblEvents) where I want to store events, FY and check box to
"Invite"
tblPerson (personID, Name)
tblEvent (InviteesID, personID, FY, EventCode, Invite)
each person can be invited to a many events so, I have id field (InviteesId)
in tblEvent.
SELECT tblInviteesList.InviteesID,
tblInviteesList.personID,tblProtocol.LastName, tblProtocol.FirstName,
tblInviteesList.FY, tblInviteesList.EventCode, tblInviteesList.Invite
FROM tblInviteesList RIGHT JOIN tblProtocol ON tblInviteesList.personID =
tblPerson.personID
ORDER BY tblperson.LastName, tblperson.FirstName;
I've created the continuous form from above SQL where I want to list all the
records from the "tblPerson" and user selects the Event from previous form
and check box to "Invite" and save the data. The problem is the sql above
always brings entire list of previous saved events. I know my SQL is not
correct and i've tried other ways but with no success.
scenario:
if it's new event, list everyone from tblPerson with unchecked "Invite"
If created event, list everyone from tblPerson and list "EventCode", checked
"Invite" so, user can modify the invitees list