Results 1 to 3 of 3

Thread: Need help missing Operators...

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2007
    Posts
    839

    Question Need help missing Operators...

    why there is missing operator error in this codes "SELECT * RSOQuerryFinal where RsoNo='" & UsePrinRSONO & "'"

    by the way this from excel and the like the two sheet in the access then those two sheet Put it in the Query and that querry in where in use here... called" RSOQuerryFinal "

    then, here is my codes
    why there is missing operator as i said above?

    Private Sub GetRecords(ByVal UsePrinRSONO As String)
    Try
    ds = New DataSet
    Dim cmd As New OleDbCommand
    cmd.Connection = cn
    cmd.CommandType = CommandType.Text
    cmd.CommandText = "SELECT * RSOQuerryFinal where RsoNo='" & UsePrinRSONO & "'"
    da = New OleDbDataAdapter
    da.SelectCommand = cmd
    da.Fill(ds, "RSOQuerryFinal")
    Catch ex As Exception
    MsgBox(ex.ToString)
    MsgBox(ex.Message)
    End Try
    End Sub

  2. #2
    Lively Member
    Join Date
    Sep 2007
    Location
    Texas
    Posts
    98

    Re: Need help missing Operators...

    Small typo in your SQL syntax

    it should read

    SELECT * FROM RSOQuerryFinal where RsoNo='" & UsePrinRSONO & "'"

  3. #3
    Fanatic Member onlyGirl's Avatar
    Join Date
    Sep 2006
    Location
    Houston, TX
    Posts
    743

    Re: Need help missing Operators...

    Did that help you out?
    Using Visual Studio 2008

    Please mark your thread RESOLVED if you no longer need help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width