|
-
May 16th, 1999, 10:50 PM
#1
URGENT: Opening a Database table
Whe I open a recordset I get the following error.
Too few parameters. Expected 1
When I remove the m_strFilter statement ahead of Open(), then i don't get this error. my code is:
GradesSet.m_strFilter ="Grade Like "+ sGrade;
GradesSet.Open();
Can somebody help me!
-
May 17th, 1999, 12:17 AM
#2
Re: URGENT: Opening a Database table
m_strFilter="[field name] LIKE" + sValue
**************************
* Cao Jiling *
**************************
-
May 17th, 1999, 12:20 AM
#3
Re: URGENT: Opening a Database table
What's the field type of Grade?
If it's int or float use >,>=, BETWEEN , etc.
**************************
* Cao Jiling *
**************************
-
May 17th, 1999, 12:35 AM
#4
Re: URGENT: Opening a Database table
rather:
GradesSet.m_strFilter ="[Grades].[Grade] Like " +CString("'") + sGrade + CString("'");
thankx I got the idea!
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
|