Hi,
When I change the value of combo box, it gives me this
" Run-Time error '2001' You canceled the previous operation "
here is the code...
Private Sub cmbSize_Click()
Dim ebat As Variant
Dim idno As Integer
idno = Me.cmbStyleID.Column(0)
ebat = Me.cmbSize.Column(0)
Me.txtUnitPrice = DLookup("ebat", "SizePrice", "[styleid] = " & idno)
End Sub
Appreciate for any help.
When I change the value of combo box, it gives me this
" Run-Time error '2001' You canceled the previous operation "
here is the code...
Private Sub cmbSize_Click()
Dim ebat As Variant
Dim idno As Integer
idno = Me.cmbStyleID.Column(0)
ebat = Me.cmbSize.Column(0)
Me.txtUnitPrice = DLookup("ebat", "SizePrice", "[styleid] = " & idno)
End Sub
Appreciate for any help.