|
-
Feb 19th, 2001, 04:35 PM
#1
Thread Starter
New Member
I am trying to implement a sort function for displaying query results in a MSHFlexgrid from an access database. The user selects which field they would like to sort by from a list box. I am getting a syntax error on the following line:
SelPM = "SELECT * FROM Pattern ORDERED BY " + Selected + ";"
I have also tried:
SelPM = "SELECT * FROM Pattern ORDERED BY """ + Selected + """;"
and a few other combinations.
The variable 'Selected' is specified by the user by filling in the sort dialog box. The proper value is being put into the 'Selected' variable, I can see it in the debugger. Any ideas would be appreciated. Thank you.
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
|