Originally posted by JKing
They are both text fields.
Private Sub cbo_Calledby_AfterUpdate()
With Me![cbo_deptselect]
If IsNull(Me!cbo_Calledby) Then
.RowSource = " "
Else
.RowSource = "Select DISTINCT [dept] " & _
"From tbl_trial " & _
"Where [calledby_id]=" & Me!cbo_Calledby
End If
Call .Requery
End With
End Sub
Private Sub cbo_deptselect_AfterUpdate()
With Me![cbo_boat]
If IsNull(Me!cbo_deptselect) Then
.RowSource = " "
Else
.RowSource = "Select DISTINCT [boat] " & _
"From tbl_trial " & _
"Where [calledby_id]= '" & Me!cbo_Calledby & "'"
End If
Call .Requery
End With
End Sub
Comment