Results 1 to 6 of 6

Thread: too few parameter error in SQL Statement...plz help!

  1. #1

    Thread Starter
    Hyperactive Member deane034's Avatar
    Join Date
    May 2001
    Location
    Sri Lanka
    Posts
    485

    too few parameter error in SQL Statement...plz help!

    hi guys this is the code i am using when i run this coode Vb gives me a too few parameter err....these SQL code was genarated in MS Access.. the Group and class and course are all String Varables..i am using Dao 3.6...can anyone find whatz wrong?



    SQLString = " SELECT Class_Table.StNo, Class_Table.Group, Class_Table.Course, Class_Table.Class" & _
    " From Class_Table" & _
    " WHERE (((Class_Table.Group)=" & _
    Group & ") AND ((Class_Table.Course)=" & Course & ") AND ((Class_Table.Class)=" & Class & "));"



    Set RS = DB.OpenRecordset(SQLString)
    me.life = VB

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    I think the compiler was being sarcastic with you... too few parenthesis. (kidding )

    SQLString = " SELECT Class_Table.StNo, Class_Table.Group, Class_Table.Course, Class_Table.Class" & _
    " From Class_Table" & _
    " WHERE (((Class_Table.Group)='" & _
    Group & "') AND ((Class_Table.Course)='" & Course & "') AND ((Class_Table.Class)='" & Class & "'));"

  3. #3

    Thread Starter
    Hyperactive Member deane034's Avatar
    Join Date
    May 2001
    Location
    Sri Lanka
    Posts
    485

    Talking

    thanks man i'll try it out..and see if there is a problem inda morinin....
    me.life = VB

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    btw, where in sri lanka do you live? I was in Colombo at... uhm.. Melrose Avenue for about 3 years.

  5. #5

    Thread Starter
    Hyperactive Member deane034's Avatar
    Join Date
    May 2001
    Location
    Sri Lanka
    Posts
    485
    Cool...i live close to Negombo..... are u sri lankan?....if u are...u are the 2nd one i met here...i also met someone called JANAKA...ela ela machan..
    me.life = VB

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Sorry 2 disappoint. I'm not Sri Lankan. And I didn't even understand half of the stuff you spewed there... Negombo... uhm.. I've been to Colombo and Kandy, where I was attacked by an alligator... and I don't know Sinhalese.
    lol.

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