Advertisement
Guest User

Untitled

a guest
Apr 1st, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. Dim strfilter As String
  2. bsorder.Filter = "CustomerID = " & custid & ""
  3. strfilter = CStr(bsorder.Filter = "CustomerID = " & custid & "")
  4. If String.IsNullOrEmpty(CStr(strfilter)) Then
  5. MessageBox.Show("Error! No result found, try again!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
  6. Else
  7. bsorder.Filter = "CustomerID = " & custid & ""
  8. NoFilterToolStripMenuItem.Visible = True
  9. bsorder.MoveFirst() 'go to start once filtered
  10. BtnNext.Enabled = True
  11. BtnSEnd.Enabled = True
  12. BtnPrev.Enabled = (bsorder.Position > 0)
  13. BtnStart.Enabled = (bsorder.Position > 0)
  14. End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement