A Angel69 Registered User. Local time Today, 17:51 Joined Jun 11, 2013 Messages 86 Apr 30, 2014 #1 I've used this parameter back in Access 2.0 where I ask for I put [What location?] as the parameter and users can put 'North' or hit enter to get all locations. I can't figure out what the 'code' is behind this. Any ideas? Thanks.
I've used this parameter back in Access 2.0 where I ask for I put [What location?] as the parameter and users can put 'North' or hit enter to get all locations. I can't figure out what the 'code' is behind this. Any ideas? Thanks.
pr2-eugin Super Moderator Local time Today, 22:51 Joined Nov 30, 2011 Messages 8,494 Apr 30, 2014 #2 It would be in the Query, somethng like. Code: SELECT someFields FROM theTable WHERE theField Like Nz([Enter Location?], "*");
It would be in the Query, somethng like. Code: SELECT someFields FROM theTable WHERE theField Like Nz([Enter Location?], "*");
A Angel69 Registered User. Local time Today, 17:51 Joined Jun 11, 2013 Messages 86 Apr 30, 2014 #3 Thanks, that worked nicely. How would I do it for a start and end date. Currently, I have Between [Forms]![Main Menu]![StartDate] And [Forms]![Main Menu]![EndDate] but want them to be able to press enter and not fill out a date in the form to see all.
Thanks, that worked nicely. How would I do it for a start and end date. Currently, I have Between [Forms]![Main Menu]![StartDate] And [Forms]![Main Menu]![EndDate] but want them to be able to press enter and not fill out a date in the form to see all.
Brianwarnock Retired Local time Today, 22:51 Joined Jun 2, 2003 Messages 12,701 Apr 30, 2014 #4 Mydatefield Between [Forms]![Main Menu]![StartDate] And [Forms]![Main Menu]![EndDate] or Forms![main menu]![startdate] is null You check to see if the parameter is null if it is then it will be for all records so all are selected for this criteria Brian Last edited: Apr 30, 2014
Mydatefield Between [Forms]![Main Menu]![StartDate] And [Forms]![Main Menu]![EndDate] or Forms![main menu]![startdate] is null You check to see if the parameter is null if it is then it will be for all records so all are selected for this criteria Brian