Whenever making a reference to the field which is assigned to a Text Box or Combo box, it is going and check the change_event routine. How can I prevent this for running the change-event only when the user actually change the Combo box or Text Box ?.
1)here on doubleclick the text has to be displayed in the text box.
Private Sub mshgridcustomer_DblClick()
If mshgridCustomer.Rows > 0 Then
With mshgridCustomer
'.Row = .MouseRow + 1
.Row = .MouseRow
.Col = 0
unitid = .Text
txtid.Text = unitid
.Col = 1
txtcustname.Text = .Text
::::::::::
End With
End If
::::::::
End Sub
2)Below procedure is to set the ComboBox in Form_load. In this case also it is wasting time by going and checking the Change_event of the ComboBox!!
Private Sub SetCombo()
:::::::::::
Set cboplsystem.DataSource = adoCustRS1
Set cboplsystem.RowSource = adoCustRS1
End Sub
Is there any better way for getting thru.
Please help me as soon as possible, I am about to test run the program with actual data.
Thank you
1)here on doubleclick the text has to be displayed in the text box.
Private Sub mshgridcustomer_DblClick()
If mshgridCustomer.Rows > 0 Then
With mshgridCustomer
'.Row = .MouseRow + 1
.Row = .MouseRow
.Col = 0
unitid = .Text
txtid.Text = unitid
.Col = 1
txtcustname.Text = .Text
::::::::::
End With
End If
::::::::
End Sub
2)Below procedure is to set the ComboBox in Form_load. In this case also it is wasting time by going and checking the Change_event of the ComboBox!!
Private Sub SetCombo()
:::::::::::
Set cboplsystem.DataSource = adoCustRS1
Set cboplsystem.RowSource = adoCustRS1
End Sub
Is there any better way for getting thru.
Please help me as soon as possible, I am about to test run the program with actual data.
Thank you