I am trying to implement the DateAdd function into my Microsoft Access 2010 form. I have a form that when the user inputs the date (property name called "txtStartDate", then I want the output in a different part to be 18 calendar days in the future (property name called "textEndDate").
I know the format will be
=DateAdd("d", 18, txtStartDate)
but how do I write it in VBA code to implement?
=DateAdd("d",18, txtStartDate)