Results 1 to 2 of 2

Thread: MSFlexgrid manipulation

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2000
    Location
    ROCHESTER, KENT, ENGLAND
    Posts
    9
    Hi

    I am working on a project using a msflexgrid.

    I have managed to run the program and get it to show the records contained in an Access database and everything is fine.

    However, now I want to make the grid display only the records in the database that contain a certain figure or text in a field.

    Say for instance I do a text or input box and make the grid display only the records in the database that contains what ever is put into the input box.

    What code do i use to tell the grid to display only these records and do the correct filtering?

    Any ideas? Anyone?

    Cheers

    Brendon

  2. #2
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987
    You need to use an SQL query on your database something to the effect of ....

    Code:
    "SELECT * FROM Table WHERE Field = 'Jon';"
    and then just display the records the same as you have been doing. If you can supply some code I could give a clearer explanation.

    {Insert random techno-babble here}

    {Insert quote from some long gone mofo here}

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