Searching for an answer

mole999

Well-known Member
Joined
Oct 23, 2004
Messages
10,524
Office Version
  1. 2019
  2. 2016
  3. 2013
Platform
  1. Windows
Have been looking for a while and nothing obvious occurs to me

My aim is to print information for access as a report. I want to use three criteria

1) The start Date
2) The end Date
3) One of the titles that occur between the two dates

I can use a query for start and finish (what I dearly would love to do, if the field is left blank then use a default value, which would be back to the creation of the database, then if the end date is left bank then the current date plus one is the default)

i.e it would be IF A = Null then A = Date#01/01/2001# obviously that's wrong but I don't know who to write it

I then have to select from the headings available between those dates for the records I want to print (one only)

Any thoughts, If i Can only get the dates that will be useful
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Have been looking for a while and nothing obvious occurs to me

My aim is to print information for access as a report. I want to use three criteria

1) The start Date
2) The end Date
3) One of the titles that occur between the two dates

I can use a query for start and finish (what I dearly would love to do, if the field is left blank then use a default value, which would be back to the creation of the database, then if the end date is left bank then the current date plus one is the default)

i.e it would be IF A = Null then A = Date#01/01/2001# obviously that's wrong but I don't know who to write it

I then have to select from the headings available between those dates for the records I want to print (one only)

Any thoughts, If i Can only get the dates that will be useful

I Have an answer for the 1 and 2 parts [start date] or >#01/01/2001# as the criteria, too simple really, going to play with Between [start date] or >#01/01/2001# And [end date] or >#31/12/2020#
 
Upvote 0
Between is not allowed the way i was doing it
 
Upvote 0

Forum statistics

Threads
1,214,547
Messages
6,120,139
Members
448,948
Latest member
spamiki

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top