Hi everyone,
I'm using VB6(SP5), Access2000, ADO data control and populating a recordset with a simple SQL query..."SELECT * FROM Parts". I'm using option buttons to allow the user to select various columns to display in a DataCombo box where they will then select the specific item data they wish to view in the bound text boxes of the form. All pretty basic stuff.
I'm having trouble using the recordset.filter. What I want to do is something like...
rs.Filter="NewPartNum IS NOT NULL"
rs.Sort="NewPartNum"
I need to filter out Null fields, but I can't seem to get it to work. I know the query can do it, but I need to do this many times depending on the user's option button selection. Thus the Filter property would be ideal. Rather than running a new query for each situation.
Could anyone help me out...as in explain how this property should be used or where I can find good information about it. I have searched the forum and the FAQs to no avail, and MS Help didn't seem to "help" either.
Of all the things I've lost, I miss my mind the most!
Sideman
I'm using VB6(SP5), Access2000, ADO data control and populating a recordset with a simple SQL query..."SELECT * FROM Parts". I'm using option buttons to allow the user to select various columns to display in a DataCombo box where they will then select the specific item data they wish to view in the bound text boxes of the form. All pretty basic stuff.
I'm having trouble using the recordset.filter. What I want to do is something like...
rs.Filter="NewPartNum IS NOT NULL"
rs.Sort="NewPartNum"
I need to filter out Null fields, but I can't seem to get it to work. I know the query can do it, but I need to do this many times depending on the user's option button selection. Thus the Filter property would be ideal. Rather than running a new query for each situation.
Could anyone help me out...as in explain how this property should be used or where I can find good information about it. I have searched the forum and the FAQs to no avail, and MS Help didn't seem to "help" either.
Of all the things I've lost, I miss my mind the most!
Sideman