G
Guest
Been battling with for some days and then latterly battling with how I can
properly describe the situation.
Well, here goes.........
The application stores details of Community Education programs and the
problem is with the Enrolment form (fEnrolments) which has a sub-form
(sfEnrolments3). The sub-form is data sheet view and the link is in OnLoad
event of fEnrolments
Set Me.Recordset = Me.sfEnrolments3.Form.Recordset
Everything works fine and the SQL for the Record Source is
SELECT tEnrolment.*, tMstrCultural.Description AS Cultural,
tMstrMaritalStatus.Description AS Marital, tMstrSource.Description AS Source,
tMstrStaff.FirstName+" "+tMstrStaff.LastName AS StaffName,
[tMstrProgramName.Description] & " : " & [StartDate] AS Program,
[tEnrolment.FirstName] & " " & [tEnrolment.LastName] AS Enrollee
FROM (((tEnrolment LEFT JOIN tMstrStaff ON tEnrolment.StaffID =
tMstrStaff.StaffID) LEFT JOIN tMstrSource ON tEnrolment.SourceID =
tMstrSource.SourceID) LEFT JOIN tMstrMaritalStatus ON
tEnrolment.MaritalStatusID = tMstrMaritalStatus.MaritalStatusID) LEFT JOIN
tMstrCultural ON tEnrolment.CulturalID = tMstrCultural.CulturalID;
In order to display the Program Name and Start Date in sfEnrolments3 I add
the tables tMstrProgram and tMstrProgramName and the Record Source SQL becomes
SELECT tEnrolment.*, tMstrCultural.Description AS Cultural,
tMstrMaritalStatus.Description AS Marital, tMstrSource.Description AS Source,
tMstrStaff.FirstName+" "+tMstrStaff.LastName AS StaffName,
[tMstrProgramName.Description] & " : " & [StartDate] AS Program,
[tEnrolment.FirstName] & " " & [tEnrolment.LastName] AS Enrollee,
tMstrProgram.FundingID, tMstrProgramName.Description AS ProgDesc,
tMstrProgram.StartDate
FROM ((((tEnrolment LEFT JOIN tMstrStaff ON tEnrolment.StaffID =
tMstrStaff.StaffID) LEFT JOIN tMstrSource ON tEnrolment.SourceID =
tMstrSource.SourceID) LEFT JOIN tMstrMaritalStatus ON
tEnrolment.MaritalStatusID = tMstrMaritalStatus.MaritalStatusID) LEFT JOIN
tMstrCultural ON tEnrolment.CulturalID = tMstrCultural.CulturalID) LEFT JOIN
(tMstrProgram LEFT JOIN tMstrProgramName ON tMstrProgram.ProgNameID =
tMstrProgramName.ProgNameID) ON tEnrolment.ProgramID = tMstrProgram.ProgramID;
The problem then arises that when I select the Program combo-box on
fEnrolments and try to change the selection - the bell sounds, the combo-box
does not close and therefore the record is not updated.
Both the form and sub-form definitely have the same SQL in Record Source.
I hope that this is not too vague.
properly describe the situation.
Well, here goes.........
The application stores details of Community Education programs and the
problem is with the Enrolment form (fEnrolments) which has a sub-form
(sfEnrolments3). The sub-form is data sheet view and the link is in OnLoad
event of fEnrolments
Set Me.Recordset = Me.sfEnrolments3.Form.Recordset
Everything works fine and the SQL for the Record Source is
SELECT tEnrolment.*, tMstrCultural.Description AS Cultural,
tMstrMaritalStatus.Description AS Marital, tMstrSource.Description AS Source,
tMstrStaff.FirstName+" "+tMstrStaff.LastName AS StaffName,
[tMstrProgramName.Description] & " : " & [StartDate] AS Program,
[tEnrolment.FirstName] & " " & [tEnrolment.LastName] AS Enrollee
FROM (((tEnrolment LEFT JOIN tMstrStaff ON tEnrolment.StaffID =
tMstrStaff.StaffID) LEFT JOIN tMstrSource ON tEnrolment.SourceID =
tMstrSource.SourceID) LEFT JOIN tMstrMaritalStatus ON
tEnrolment.MaritalStatusID = tMstrMaritalStatus.MaritalStatusID) LEFT JOIN
tMstrCultural ON tEnrolment.CulturalID = tMstrCultural.CulturalID;
In order to display the Program Name and Start Date in sfEnrolments3 I add
the tables tMstrProgram and tMstrProgramName and the Record Source SQL becomes
SELECT tEnrolment.*, tMstrCultural.Description AS Cultural,
tMstrMaritalStatus.Description AS Marital, tMstrSource.Description AS Source,
tMstrStaff.FirstName+" "+tMstrStaff.LastName AS StaffName,
[tMstrProgramName.Description] & " : " & [StartDate] AS Program,
[tEnrolment.FirstName] & " " & [tEnrolment.LastName] AS Enrollee,
tMstrProgram.FundingID, tMstrProgramName.Description AS ProgDesc,
tMstrProgram.StartDate
FROM ((((tEnrolment LEFT JOIN tMstrStaff ON tEnrolment.StaffID =
tMstrStaff.StaffID) LEFT JOIN tMstrSource ON tEnrolment.SourceID =
tMstrSource.SourceID) LEFT JOIN tMstrMaritalStatus ON
tEnrolment.MaritalStatusID = tMstrMaritalStatus.MaritalStatusID) LEFT JOIN
tMstrCultural ON tEnrolment.CulturalID = tMstrCultural.CulturalID) LEFT JOIN
(tMstrProgram LEFT JOIN tMstrProgramName ON tMstrProgram.ProgNameID =
tMstrProgramName.ProgNameID) ON tEnrolment.ProgramID = tMstrProgram.ProgramID;
The problem then arises that when I select the Program combo-box on
fEnrolments and try to change the selection - the bell sounds, the combo-box
does not close and therefore the record is not updated.
Both the form and sub-form definitely have the same SQL in Record Source.
I hope that this is not too vague.