Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Fay86

  1. Fay86

    error message when pin and/or account number entered incorrectly

    i entered this code - Private Sub EnterButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EnterButton.Click 'set the pin to only three tries pinTries = pinTries + 1 Dim temp As String Dim found As Boolean found = True...
  2. Fay86

    error message when pin and/or account number entered incorrectly

    il give that a go..thanks guys. the only other thing im concerned about is the part that allows the groupbox which is called screen to be enabled and visible if the pin and account number is entered correctly. originally it the code was like this .. While objDR.Read() 'enter both...
  3. Fay86

    error message when pin and/or account number entered incorrectly

    i am trying to get it working however i am having little success. do you mean something like this - 'set the pin to only three tries pinTries = pinTries + 1 Dim temp As String Dim found As Boolean found = True Dim aID As String Dim correct...
  4. Fay86

    error message when pin and/or account number entered incorrectly

    i can see you logic in taking the code in steps like you have said - If cashpointscreen.Text = objDR.GetString(4) then ' Set the flag for the PIN being correct here. else ' Set the flag for the PIN being wrong here. end if If accountID.Text = objDR.GetString(0) then ' Set...
  5. Fay86

    error message when pin and/or account number entered incorrectly

    i have tried placing the exit sub there and it will display the pin part however if the account number is incorrect then it will display no message at all
  6. Fay86

    error message when pin and/or account number entered incorrectly

    i agree with what you are saying and i know the code acts the same in situtation 2 and 3 but i really have no clue how to fix the error. i obviously want the correct error to appear when siutation 2 arises and the other error to run when situtation 3 arises. but how i get the code to do this i...
  7. Fay86

    error message when pin and/or account number entered incorrectly

    im sorry i dont understand what you mean. i just need the code to display the the correct error message according to the error inputted by the user
  8. Fay86

    error message when pin and/or account number entered incorrectly

    i tried using the exit sub and it didnt solve my problem sorry. ive reduced the code to the following - Private Sub EnterButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EnterButton.Click 'set the pin to only three tries pinTries = pinTries...
  9. Fay86

    error message when pin and/or account number entered incorrectly

    by inserting an end sub for example where you said directly after the line "MessageBox.Show(aID)" will that prevent the other from executing because it is essential that this bit of code executes once the user gains access - If MoneytoTakeOut.Visible = True Then tempValue =...
  10. Fay86

    error message when pin and/or account number entered incorrectly

    this is the entire code for with the end sub - Private Sub EnterButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EnterButton.Click 'set the pin to only three tries pinTries = pinTries + 1 Dim temp As String Dim found As Boolean...
  11. Fay86

    error message when pin and/or account number entered incorrectly

    on which end if? i have coded some of the code out because it doesnt quiet work and is giving me problems
  12. Fay86

    error message when pin and/or account number entered incorrectly

    hey guys.. im really new at using vb.net and i have been set a assignment to design a cashpoint machine. i need an error message to appear when the account number is entered incorrecly, for example error reading card, and i need a error message to appear when user entered incorrect pin number...

Part and Inventory Search

Back
Top