G
Guest
I have a double-click event that's making me nuts. I'm getting the 3464 error
message and the debugger points to the line below in ><
Any ideas what's wrong? I'm drowning!
Private Sub cbSupplier_DblClick(Cancel As Integer)
If IsNull(Me!cbSupplier) Then
' no supplier ID selected; show all ...
DoCmd.OpenForm "frmPKSuppliers"
Else
' Show selected supplier name.
' First, open frmPKSuppliers to show the supplier name ...
DoCmd.OpenForm "frmPKSuppliers", _
WhereCondition:="txtSupplierName=""" & _
Me!cbSupplier.Column(1) & """"
' Now position the subform, sfrmSupplierIDs,
' to the selected ID ...
With Forms!frmPKSuppliers!sfrmSupplierIDs.Form
End With
End If
End Sub
message and the debugger points to the line below in ><
Any ideas what's wrong? I'm drowning!
Private Sub cbSupplier_DblClick(Cancel As Integer)
If IsNull(Me!cbSupplier) Then
' no supplier ID selected; show all ...
DoCmd.OpenForm "frmPKSuppliers"
Else
' Show selected supplier name.
' First, open frmPKSuppliers to show the supplier name ...
DoCmd.OpenForm "frmPKSuppliers", _
WhereCondition:="txtSupplierName=""" & _
Me!cbSupplier.Column(1) & """"
' Now position the subform, sfrmSupplierIDs,
' to the selected ID ...
With Forms!frmPKSuppliers!sfrmSupplierIDs.Form
"txtSupplierID=" & Me!cbSupplier.Column(0)<.Recordset.FindFirst _
End With
End If
End Sub