ms access - I need a formula that finds a departure date between two given dates where the departure occurs later than a given time -
im using access 365 2016.
i need formula finds departure date between 2 given dates departure occurs later given time.
i have tried formula doesnt work:
between [date1] , [date2] (timevalue([date1] > 09:30
thank you
the formula quoted above simpler way of writing formula references controls on form.
the formula below references controls in flights form , exact formula used in expression builder.
between [forms]![flights]![cbodeparture] , [forms]![flights]![cbodeparture2] , timevalue([forms]![flights]![cbodeparture])>[forms]![flights]![cbogreaterthantime])
i altered formula according code provided gustav in comments section neither code worked. see comments. code used method 1:
(between [forms]![flights]![cbodeparture] , [forms]![flights]![cbodeparture2]) , (timevalue([forms]![flights]![cbodeparture])>[forms]![flights]![cbogreaterthantime])
this code used method 2:
between (datevalue([forms]![flights]![cbodeparture])+#09:30:00#) , [forms]![flights]![cbodeparture2]
try with:
(between [date1] , [date2]) , (timevalue([date1]) > #09:30#)
or:
between (datevalue([date1]) + #09:30#) , [date2]
with comboboxes perhaps:
between datevalue([forms]![flights]![cbodeparture]) , datevalue([forms]![flights]![cbodeparture2]) , timevalue([forms]![flights]![cbodeparture]) > timevalue([forms]![flights]![cbogreaterthantime])
Comments
Post a Comment