Re: Saving DATE
- From: "Rick Brandt" <rickbrandt2@xxxxxxxxxxx>
- Date: Sat, 11 Jun 2005 15:45:40 GMT
Sam wrote:
> I'm trying to save current DATE + 1 month to table, but it doesn't
> save it as a date format but shows something like this
> "7.83754898468115E-04" after saving. I'm using following code
>
> DoCmd.RunSQL "UPDATE Administrative" & _
> " SET Field2 = " & DateAdd("m", 1, dd) & ";"
>
> Where "dd" is defined as a DATE variable. What might be wrong? Could
> there be any optional ways of completing this? Thanks!
What DataType is Field2? Dates in Access are numbers of type Double under the
covers. If you place one in a numeric field then a number is what you will see.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
.
- References:
- Saving DATE
- From: Sam
- Saving DATE
- Prev by Date: Saving DATE
- Next by Date: Re: Data Access Page on Pocket PC
- Previous by thread: Saving DATE
- Next by thread: Re: Saving DATE
- Index(es):
Relevant Pages
|