• (2 Pages)
  • +
  • 1
  • 2

[WalkThrough] UserNames & Password Database Picture Heavy. DataTableAdapter + Query Rate Topic: ****- 2 Votes

#16 chyldlyk  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 08-February 12

Posted 08 February 2012 - 01:43 PM

Sir i have a question where can i find your Walkthrough about update and delete using table adapter configuration wizard just like your username and password database
Was This Post Helpful? 0
  • +
  • -

#17 Screwbacon  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 17-January 13

Posted 17 January 2013 - 06:59 AM

Hi there, newbie here :)
I tried to modify the code and put it in loginform1.vb instead, but i get a error when hitting OK:

Private Sub Ok_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
Dim r = usersDataSet.UsersTableAdapter.ValidateUserNamePasswords(Me.UsernameTextBox.Text, Me.PasswordTextBox.Text)
If r Is Nothing Then
' UserName / Password wrong
MessageBox.Show("Feil brukernavn eller passord")
Else
' Valid Username & Password
MessageBox.Show("Welcome")
Me.Hide()
Form1.Show()

End If
End Sub

Returns when I click OK with and without correct username and password:
An unhandled exception of type 'System.NullReferenceException' occurred in Microsoft.VisualBasic.dll

Additional information: Objektvariabel eller "With"-blokkvariabel er ikke angitt. (translated from Norwegian, not neccesarely correct: Object variable or "with" block variable not set.

Anyone? Thanks
Was This Post Helpful? 0
  • +
  • -

#18 Allego  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 07-March 13

Posted 07 March 2013 - 06:50 PM

where can i find your tutorial for update and delete sir? thanks in advance
Was This Post Helpful? 0
  • +
  • -

#19 aman20048  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 09-October 09

Posted 30 January 2014 - 06:43 AM

Hi Adam,
Thanks. Your code worked well for me when I was using VB2008 but I have upgraded to VB2010. Unfortunately, I can build the project and continue.
Can you help me?
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2