I am new in Access not much experiance with VB
I have a LoopForm.accdb
Inside the LoopForm.accdb database I have a table DateTable
The DateTable has the columns: ID, DateToday, StartDate, EndDate
I have a DateTableForm with the elements DateTodayForm, StartDateForm and EndDateForm.
What I want is when the DateTableForm is opened up, the dates for all three boxes
is automatically filled with dates.
Then the loop
The DateTodayForm = currentdate
StartDateForm = begin start at April 27
EndDateForm = begin end at May 10
if currentdate is between April 27 and May 10
Then StartDateForm = April 27
and EndDateForm = May 10
if not
the loop should spell 2 weeks up
if
currentdate is between May 11 and May 24
Then StartDateForm = May 11
and EndDateForm = May 24
and so on
Any one WHO can tell about how I do this in a Modules with VB ??