Good Day guy's, can one of you great people help with this one please ?
I am trying to return date based on DayName and which week selected, i have asked the questions in the code commented out
Thanks as always
Code:sDay = Me.cboDay If Forms!frmPlanning!optNextWeek = True Then sWeek = DatePart("ww", Date) + 1 dtNewDate = "???????" 'Need to find date based on sDay For sWeek ??? 'If Friday is Selected in cboDay, because optNextWeek is selected, 'i need dtNewDate to return 18/08/23 MsgBox (sWeek) End If If Forms!frmPlanning!optThisWeek = True Then sWeek = DatePart("ww", Date) dtNewDate = "???????" 'Need to find date based on sDay For sWeek ??? 'If Friday is Selected in cboDay, because optThisWeek is selected, 'i need dtNewDate to return 11/08/23 MsgBox (sWeek) End If