G
Guest
In the following code, DCount line goes to the error exit. iMgr is set correctly to the ID number for the manager table. Names have been copied from the tables themselves, so they are correct. parenthesis and quotes are paired
Dim iMgr As Integer 'holds manager I
Dim i As Integer 'holds count of people for that manage
iMgr = Form_frmManagers.cboSelectMgrName.Valu
' Count how many people the manager still has assigned to the
i = DCount("[peoPeopleID]", "tblPeople", "[mgrManagersID] = '" & iMgr & "'"
Dim iMgr As Integer 'holds manager I
Dim i As Integer 'holds count of people for that manage
iMgr = Form_frmManagers.cboSelectMgrName.Valu
' Count how many people the manager still has assigned to the
i = DCount("[peoPeopleID]", "tblPeople", "[mgrManagersID] = '" & iMgr & "'"