Results 1 to 3 of 3

Thread: [Resolved] Problems filtering records to display on Datagrid

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2004
    Location
    Sinagpore
    Posts
    42

    Exclamation [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

  2. #2

    Thread Starter
    Member
    Join Date
    Aug 2004
    Location
    Sinagpore
    Posts
    42

    Re: Problems filtering records to display on Datagrid

    Sorry this is urgent so I'll be grateful if anyone can help.

    Thanks

  3. #3
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    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
  •  



Click Here to Expand Forum to Full Width