Greetings,
My question is how do I get Is Not Null as the criteria in a query, but not as a string? The criteria on one of my query fields is based on a field on a form. The user has three choices North, South and Is Not Null. The problem is the "Is Not Null" goes to the query as a string literal, and I don't get the results I am looking for (basically I get no results - understandably). How do I write the VBA to say txtFieldA = "Is Not Null" so that it performs correctly on the query?
thanks
My question is how do I get Is Not Null as the criteria in a query, but not as a string? The criteria on one of my query fields is based on a field on a form. The user has three choices North, South and Is Not Null. The problem is the "Is Not Null" goes to the query as a string literal, and I don't get the results I am looking for (basically I get no results - understandably). How do I write the VBA to say txtFieldA = "Is Not Null" so that it performs correctly on the query?
thanks