Results 1 to 4 of 4

Thread: Filtered Recordset [RESOLVED]

  1. #1

    Thread Starter
    Fanatic Member JCScoobyRS's Avatar
    Join Date
    Oct 2002
    Location
    Some Mountain in Colorado
    Posts
    677

    Filtered Recordset [RESOLVED]

    VB Code:
    1. Private Sub rdALL_Click()
    2.     OraRec.Filter = ""
    3.     OraRec.MoveFirst
    4.     varBookmark = OraRec.Bookmark
    5. End Sub

    I have a DataGrid bound to OraRec. I filtered it and now I want to eliminate the filter. I set it = "" but the DataGrid doesn't show the results of the unfiltered recordset. What am I doing wrong? Thanks, Jeremy
    Last edited by JCScoobyRS; Apr 8th, 2003 at 05:00 PM.
    He who listens well, speaks well.

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    I don't use bound controls but I would suspect you need to do a Refresh on the DataGrid.

  3. #3

    Thread Starter
    Fanatic Member JCScoobyRS's Avatar
    Join Date
    Oct 2002
    Location
    Some Mountain in Colorado
    Posts
    677
    Bruce,
    I tried that and it didn't work. Here's the way it works. I have a DataGrid bound to a recordset. When I filter the recordset, it automagically updates the DataGrid. Now, when I set the filter = "", I get one blank row in the DataGrid. I have tried rebinding, I have refreshed and now, I'm out of ideas. Do you have anymore? Thanks, Jeremy
    He who listens well, speaks well.

  4. #4

    Thread Starter
    Fanatic Member JCScoobyRS's Avatar
    Join Date
    Oct 2002
    Location
    Some Mountain in Colorado
    Posts
    677
    Bruce,
    I had to "Set DataGrid1.DataSource = OraRec". That seems to be the only thing that works. WOOHOO!!! Thanks for your help, Jeremy
    He who listens well, speaks well.

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