I
iamnu
My SubForm has a Default View of DataSheet.
I am entering a Directory Name, and a Department Name.
The Department Name has a criteria as follows:
SELECT zDepartments.DeptID, zDepartments.DeptName,
zDepartments.DirectoryID
FROM zDepartments
WHERE (((zDepartments.DirectoryID)=[Forms]![PhoneDirectory]!
[PDSubForm]![cboDirectory]))
ORDER BY zDepartments.DeptName;
and I also perform the following:
Private Sub cboDirectory_AfterUpdate()
Me!cboDeptName.Requery
End Sub
This works fine until I enter a Directory in a different Row of the
DataSheet, then the Department Name Displays as blank for all previous
Rows. The correct data is correctly stored in the table, it just
doesn't display on the form.
Can someone explain how to fix this?
I am entering a Directory Name, and a Department Name.
The Department Name has a criteria as follows:
SELECT zDepartments.DeptID, zDepartments.DeptName,
zDepartments.DirectoryID
FROM zDepartments
WHERE (((zDepartments.DirectoryID)=[Forms]![PhoneDirectory]!
[PDSubForm]![cboDirectory]))
ORDER BY zDepartments.DeptName;
and I also perform the following:
Private Sub cboDirectory_AfterUpdate()
Me!cboDeptName.Requery
End Sub
This works fine until I enter a Directory in a different Row of the
DataSheet, then the Department Name Displays as blank for all previous
Rows. The correct data is correctly stored in the table, it just
doesn't display on the form.
Can someone explain how to fix this?