Calmaris
02-19-2004, 08:38 AM
Ok a date is put into my database, what I want to do is add a month to that date and insert that new date somewhere as well. I've tried using Dateserial with the examples from 4guysfromrolla but I'm only getting errors this is the code I am using.
Dim SomeDate
SomeDate = DateSerial(1998, 3, 14)
SomeDate = DateSerial(Year(Date), Month(Date) - 1, 1 - 1)
Some date will be inserted as is into the database but I need the date 1998,4,14 to be inserted as well.
Dim SomeDate
SomeDate = DateSerial(1998, 3, 14)
SomeDate = DateSerial(Year(Date), Month(Date) - 1, 1 - 1)
Some date will be inserted as is into the database but I need the date 1998,4,14 to be inserted as well.