Is there any way to write query a date range in visual basic? I have a date range from thats called beginning date and ending date. I want to be able to determine if a specified date falls within the date range. Is there any way to do this in visual basic. Can BETWEEN be used in VB just as its used in a query? I have tried this expression but of course it doesn't work:
if [leavestart] = between [beginningdate] and [endingdate]then.
I know this doesn't work but its an example of what I would like to accomplish.
if [leavestart] = between [beginningdate] and [endingdate]then.
I know this doesn't work but its an example of what I would like to accomplish.