Hi,
This below is my code for the ComboBox_GetFocus() I am having difficulty getting it to associate the intResponseID with anything where am I going wrong?
Private Sub cboResponse_GotFocus()
Dim intResponseID As Integer
intResponseID = Me.Recordset
With Me.cboResponse
.RowSource = _
"SELECT tblCSATResponseType.ResponseItem " & _
"FROM tblCSATResponseType " & _
"WHERE tblCSATResponseType.ResponseID = " & intResponseID
End With
End Sub
The error message I keep getting is Object variable or With block variable not set and am not sure what exactly it means,
Jez.
This below is my code for the ComboBox_GetFocus() I am having difficulty getting it to associate the intResponseID with anything where am I going wrong?
Private Sub cboResponse_GotFocus()
Dim intResponseID As Integer
intResponseID = Me.Recordset
With Me.cboResponse
.RowSource = _
"SELECT tblCSATResponseType.ResponseItem " & _
"FROM tblCSATResponseType " & _
"WHERE tblCSATResponseType.ResponseID = " & intResponseID
End With
End Sub
The error message I keep getting is Object variable or With block variable not set and am not sure what exactly it means,
Jez.