Ravensleach
Programmer
I have qryHistory which joins two tables: tblMembers and tblHistory; the relationship between the tables
is one to many as each member can have more than one item of history.
SELECT DISTINCTROW tblHistory.HistoryID, tblMembers.MemberID, tblHistory.MemberID, [Title] & " " & [Initials] & " " & [Surname] AS AddressName, tblMembers.HandbookEntry, tblHistory.History, tblHistory.StartDate, tblHistory.EndDate
FROM tblMembers INNER JOIN tblHistory ON tblMembers.MemberID = tblHistory.MemberID
ORDER BY tblHistory.StartDate;
the problem is when we try to add a new history for a member who doesn't already have one.
I need to have the tblMembers.MemberID written to the tblHistory.MemberID field. (We are using a subform based on tblHistory with three fields: StartDate, EndDate and History, within a form which includes both MemberID fields and the HistoryID.
Can anyone help? Thanks.
is one to many as each member can have more than one item of history.
SELECT DISTINCTROW tblHistory.HistoryID, tblMembers.MemberID, tblHistory.MemberID, [Title] & " " & [Initials] & " " & [Surname] AS AddressName, tblMembers.HandbookEntry, tblHistory.History, tblHistory.StartDate, tblHistory.EndDate
FROM tblMembers INNER JOIN tblHistory ON tblMembers.MemberID = tblHistory.MemberID
ORDER BY tblHistory.StartDate;
the problem is when we try to add a new history for a member who doesn't already have one.
I need to have the tblMembers.MemberID written to the tblHistory.MemberID field. (We are using a subform based on tblHistory with three fields: StartDate, EndDate and History, within a form which includes both MemberID fields and the HistoryID.
Can anyone help? Thanks.