|
-
Jan 24th, 2005, 01:32 AM
#1
Thread Starter
Member
[Resolved] Problems filtering records to display on Datagrid
I have a datagrid, command button and an ADODC bar.
I need to display filtered records from a database. I used NWIND.mdb (Access) for ease of explanation.
The filter is in sql "SelectTitle ofCourtesy, count (TitleOfCourtesy) as Quantity, Region FROM Employees Group by TitleofCourtesy"
I implement this SQL sentence in design time. I put into the ADODC1 recordsource's CommandText (SQL) ; ADODC1.CommandType = adCmdText and bind the datagrid to this ADODC1.
What I want to do is to put this record filtering during runtime. As in I want to do this in code. Can anyone help?
PS: I also have this error: "Syntax Error in FROM Clause"
Thanks in advance
Last edited by Warren Ang; Jan 25th, 2005 at 09:23 PM.
Reason: Resolved
-
Jan 24th, 2005, 11:53 PM
#2
Thread Starter
Member
Re: Problems filtering records to display on Datagrid
Sorry this is urgent so I'll be grateful if anyone can help. 
Thanks
-
Jan 25th, 2005, 08:00 AM
#3
PowerPoster
Re: Problems filtering records to display on Datagrid
In the database section there is another query very similar to yours. You will find the answer there.
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
|