D
DocBrown
I've searched this newgroup and can't see an answer to my particular question.
I have a Form based on a query containing two tables, linked as a one to
many relation on an ID key. Coding in the form takes data from a unbound text
box and generates a form filter so the continuous form displays only for the
desired records from the secondary table.
The purpose of this form is to update and maybe create new records in the
secondary table. The updates work ok, but when I go to a new record in the
detail section, the bound controls in the header go blank and the record can
not be created because the ID field, which is displayed in the header is not
valid.
The Query is:
SELECT VolunteerLog.LogRecID, Volunteers.FirstName, Volunteers.LastName,
VolunteerLog.VolunteerID, VolunteerLog.LogDate, VolunteerLog.TimeIn,
VolunteerLog.TimeOut, Volunteers.SchoolName
FROM Volunteers LEFT JOIN VolunteerLog ON Volunteers.VolunteerID =
VolunteerLog.VolunteerID
ORDER BY VolunteerLog.LogRecID;
The fields from the Volunteers table are displayed in the header, the
VolunteerLog fields are in the continuous detail section.
Is this the correct approach? What is the way to create new records in the
VolunteerLog table?
Thanks!
John
I have a Form based on a query containing two tables, linked as a one to
many relation on an ID key. Coding in the form takes data from a unbound text
box and generates a form filter so the continuous form displays only for the
desired records from the secondary table.
The purpose of this form is to update and maybe create new records in the
secondary table. The updates work ok, but when I go to a new record in the
detail section, the bound controls in the header go blank and the record can
not be created because the ID field, which is displayed in the header is not
valid.
The Query is:
SELECT VolunteerLog.LogRecID, Volunteers.FirstName, Volunteers.LastName,
VolunteerLog.VolunteerID, VolunteerLog.LogDate, VolunteerLog.TimeIn,
VolunteerLog.TimeOut, Volunteers.SchoolName
FROM Volunteers LEFT JOIN VolunteerLog ON Volunteers.VolunteerID =
VolunteerLog.VolunteerID
ORDER BY VolunteerLog.LogRecID;
The fields from the Volunteers table are displayed in the header, the
VolunteerLog fields are in the continuous detail section.
Is this the correct approach? What is the way to create new records in the
VolunteerLog table?
Thanks!
John