danflipper
I am Sparticus
- Local time
- Today, 22:43
- Joined
- Jan 23, 2008
- Messages
- 20
hi, guys
this is my first post on here! ive been using this forum for well over a year now and its been a god send! hope you can help me with this one, ive searched the forum and others like mad and just cannot find a solution.
i have an unbound form which is populated by another form's startdate and enddate. when these are populated the user can click a button which inserts all of the dates in between those start and end dates using this code -
Me.txtdate2 = Format(DateAdd("d", 1, Me.startdate))
Me.txtdate3 = Format(DateAdd("d", 2, Me.startdate))
Me.txtdate4 = Format(DateAdd("d", 3, Me.startdate))
ETC ETC for 14 days
now i need to check if the date in a txtbox is equal to another txtbox with a date on the form
i have tried this
If Format(DateAdd("d", 2, Me.startdate)) = Me.enddate11 Then
and this
If Me.enddate11 = Format(DateAdd("d", 2, Me.startdate)) Then
and this
If Me.enddate11 = me.txtdate3 Then
but have had no joy, ive been looking at this in different ways for about a week now and its doin my head in
could anyone please help
thanks in advance guys
this is my first post on here! ive been using this forum for well over a year now and its been a god send! hope you can help me with this one, ive searched the forum and others like mad and just cannot find a solution.
i have an unbound form which is populated by another form's startdate and enddate. when these are populated the user can click a button which inserts all of the dates in between those start and end dates using this code -
Me.txtdate2 = Format(DateAdd("d", 1, Me.startdate))
Me.txtdate3 = Format(DateAdd("d", 2, Me.startdate))
Me.txtdate4 = Format(DateAdd("d", 3, Me.startdate))
ETC ETC for 14 days
now i need to check if the date in a txtbox is equal to another txtbox with a date on the form
i have tried this
If Format(DateAdd("d", 2, Me.startdate)) = Me.enddate11 Then
and this
If Me.enddate11 = Format(DateAdd("d", 2, Me.startdate)) Then
and this
If Me.enddate11 = me.txtdate3 Then
but have had no joy, ive been looking at this in different ways for about a week now and its doin my head in
could anyone please help
thanks in advance guys