|
-
Apr 8th, 2003, 04:09 PM
#1
Thread Starter
Fanatic Member
Filtered Recordset [RESOLVED]
VB Code:
Private Sub rdALL_Click()
OraRec.Filter = ""
OraRec.MoveFirst
varBookmark = OraRec.Bookmark
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.
-
Apr 8th, 2003, 04:28 PM
#2
I don't use bound controls but I would suspect you need to do a Refresh on the DataGrid.
-
Apr 8th, 2003, 04:37 PM
#3
Thread Starter
Fanatic Member
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.
-
Apr 8th, 2003, 05:00 PM
#4
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|