Hello everyone..
I m working on VB6 and SQLServer 2000.... i m getting an error in this line..
Private Sub txtAdjAmt_KeyPr ess(KeyAscii As Integer)
Dim vI As Integer
vI = LVPO.SelectedIt em.Index
If KeyAscii = 13 Then
LVPO.ListItems( vI).SubItems(4) = txtAdjAmt.Text
txtAdjAmt.Visib le = False
End If
Dim vI1 As Integer
vI1 = LvBill.Selected Item.Index
If KeyAscii = 13 Then
LvBill.ListItem s(vI1).SubItems (4) = txtAdjAmt.Text
txtAdjAmt.Visib le = False
End If
End Sub
is anyone there to help me out to remove the error... there is a textbox when i press any key it give an error as " object variable or with block variable not set"
plz help me.
thank u in advance
I m working on VB6 and SQLServer 2000.... i m getting an error in this line..
Private Sub txtAdjAmt_KeyPr ess(KeyAscii As Integer)
Dim vI As Integer
vI = LVPO.SelectedIt em.Index
If KeyAscii = 13 Then
LVPO.ListItems( vI).SubItems(4) = txtAdjAmt.Text
txtAdjAmt.Visib le = False
End If
Dim vI1 As Integer
vI1 = LvBill.Selected Item.Index
If KeyAscii = 13 Then
LvBill.ListItem s(vI1).SubItems (4) = txtAdjAmt.Text
txtAdjAmt.Visib le = False
End If
End Sub
is anyone there to help me out to remove the error... there is a textbox when i press any key it give an error as " object variable or with block variable not set"
plz help me.
thank u in advance
Comment