D
dates, dates and more dates
Hi All,
I have created a template which uses bookmarks and fieldforms to get data
from our database. we are a school and we have students always starting on
mondays except for public holiday. here is my problem
below is a macro found at woody's (great website)
I have 2 bookmarks (E_ST_DATE) & (public holiday) but when the macro is ran
it seem to caculate before e_st_date is updated because I get a return of
31/12/1899 as my result
Sub AutoNew()
Selection.GoTo What:=wdGoToBookmark, Name:="publicholiday"
Selection.InsertAfter Format((E_ST_DATE + 1), "dd/mm/yyyy")
End Sub
What I want to achieve is e.g (e_st_date = 10/09/2007 then publicholiday =
11/09/2007) The trouble is thou e_st_date will always change and I just want
to add 1 to wat ever date that is.
Please help
I have created a template which uses bookmarks and fieldforms to get data
from our database. we are a school and we have students always starting on
mondays except for public holiday. here is my problem
below is a macro found at woody's (great website)
I have 2 bookmarks (E_ST_DATE) & (public holiday) but when the macro is ran
it seem to caculate before e_st_date is updated because I get a return of
31/12/1899 as my result
Sub AutoNew()
Selection.GoTo What:=wdGoToBookmark, Name:="publicholiday"
Selection.InsertAfter Format((E_ST_DATE + 1), "dd/mm/yyyy")
End Sub
What I want to achieve is e.g (e_st_date = 10/09/2007 then publicholiday =
11/09/2007) The trouble is thou e_st_date will always change and I just want
to add 1 to wat ever date that is.
Please help