|
-
May 4th, 2002, 08:12 AM
#1
Thread Starter
Hyperactive Member
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)
-
May 4th, 2002, 09:17 AM
#2
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 & "'));"
-
May 4th, 2002, 01:55 PM
#3
Thread Starter
Hyperactive Member
thanks man i'll try it out..and see if there is a problem inda morinin....
-
May 4th, 2002, 02:04 PM
#4
btw, where in sri lanka do you live? I was in Colombo at... uhm.. Melrose Avenue for about 3 years.
-
May 4th, 2002, 02:09 PM
#5
Thread Starter
Hyperactive Member
-
May 4th, 2002, 02:20 PM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|