VB ASRAAF007's Profile User Rating: -----

Reputation: 1 Apprentice
Group:
Active Members
Active Posts:
53 (0.13 per day)
Joined:
11-April 12
Profile Views:
1,019
Last Active:
User is offline Private
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   VB ASRAAF007 has not set their status

Posts I've Made

  1. In Topic: Syntax error in INSERT INTO statement.

    Posted 1 May 2013

    Ohhh u got that right, in fact i knew that the "wrapper" are to be used here, but didn't know exactly where. thanks Charlie Sir
  2. In Topic: Syntax error(missing Operator) in query expression '@StudentId'

    Posted 18 Mar 2013

    Thanks Andrew.. :)
  3. In Topic: Syntax error(missing Operator) in query expression '@StudentId'

    Posted 18 Mar 2013

    soryyyy i didnt specify..lol here it is ..

    .InsertCommand.ExecuteNonQuery()
    
    


    it gives me the syntax errror when i run the program
  4. In Topic: retrieve username and password

    Posted 23 Apr 2012

    i've changed the sql in to Oledb..now it gives me this error..

    "Characters found after end of SQL statement"

    here are my codes:

    
    
        Private Sub btnLogin_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click
            Dim con As New OleDb.OleDbConnection
            Dim cmd As New OleDb.OleDbCommand
            Dim adapter As New OleDb.OleDbDataAdapter
            Dim dataset As New DataSet
    
            con.ConnectionString = "PROVIDER=Microsoft.ACE.OLEDB.12.0;Data Source = LibraryManagementSystemDatabase1.accdb; persist security info=false;"
            cmd.CommandText = "SELECT * FROM [Registration] WHERE username='" & txtUsername.Text & "' AND password='" & txtPassword.Text & "';'"
    
            con.Open()
            cmd.Connection = con
    
            adapter.SelectCommand = cmd
            adapter.Fill(dataset, "0")
    
            Dim count = dataset.Tables(0).Rows.Count
    
            If count > 0 Then
                welcomeForm.Show()
                Me.Hide()
    
            Else
                MsgBox("Incorrect username or password", MsgBoxStyle.Critical)
                txtUsername.Clear()
                txtPassword.Clear()
            End If
    
    
        End Sub
    
    
    


    and i've attached an image also
  5. In Topic: retrieve username and password

    Posted 22 Apr 2012

    Nope it still gives me the same error..even after restart.my database is in my debug folder of my program...what can i do?



    CharlieMay

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

Comments

Page 1 of 1
  1. Photo

    VB ASRAAF007 Icon

    27 Apr 2012 - 10:43
    Korect..yep He's my tutor...Sir charlie
  2. Photo

    vikxit Icon

    26 Apr 2012 - 19:00
    Ki dir frero?
    CharlieMay p bien aide toi mo truver ein...lol
    ;)
Page 1 of 1