Advertisement

05.30.2008 at 01:58PM PDT, ID: 23445991
[x]
Attachment Details

Passing Null Parameter from form to query

Asked by htamraz1 in Access Coding/Macros, SQL Query Syntax, Access Forms

I have a form 'frmMultiSelectHistory' that has two unboound fields 'StartDate' and 'ExDate' that are used to select dates. There are times when dates have selected values they work like a charm. For example,

Between [forms]![frmMultiSelectHistory]![StartDate] And [forms]![frmMultiSelectHistory]![ExDate]

However, when the dates are NULL, I still need to be able to have the form's underlying query run. Is there a function that checks for NULL and if so, replaces it with a wild card '*'

I tried several things and haven't had much success.

Any thoughtsStart Free Trial
[+][-]05.30.2008 at 02:03PM PDT, ID: 21681409

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Coding/Macros, SQL Query Syntax, Access Forms
Sign Up Now!
Solution Provided By: angelIII
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628