Re: Adding Days to a Date

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Try
CDate(Left$([date],2) & "/" & Mid$([date],3,2) & "/" & Right$([date],2)) +
10 as grcExpDate

--
Duane Hookom
MS Access MVP
--

"tim" <hawk88gt@xxxxxxxxx> wrote in message
news:Ncmdna46WuO_Xu7eRVn-ow@xxxxxxxxxxxx
>I get a text file and link it to a Access table. I then transfer it to
> another table with a text field that is a date and data is in this format:
> 091105. I run a query to add forward slashes:
>
>
>
> Left$([date],2) & "/" & Mid$([date],3,2) & "/" & Right$([date],2)
>
>
>
> The problem is I need to add 10 days to this date to be used in a merge
> document. The only way I am able to do this is to change the field type to
> date/time after I transfer the data and run the above-mentioned query. I
> have tried changing the field type to date/time before the transfer and it
> does not work. Below is part of the query I use to add 10 days to the
> date.
>
>
>
> [date]+10 AS grcExpDate
>
>
>
> What am I doing wrong?
>
> Any help would appreciated.
>
>
>
> Tim
>
> Access 2000
>
>


.



Relevant Pages

  • Re: Elapsed Time
    ... What is the field type of the EndDateTime and the StartDateTime fields? ... Ken Snell <MS ACCESS MVP> "jo" wrote in message ... > I get a type conversion error. ... >>>>Post the query that you tried to use and got the error ...
    (microsoft.public.access.modulesdaovba)
  • Re: Between And Operator in Date Field
    ... If you open the table in design view, what is the Field Type of your ... Is it Date/Time? ... Declare these parameters so that the query knows they are date/time values. ... the Criteria at step2 to: ...
    (microsoft.public.access.queries)
  • Adding Days to a Date
    ... The only way I am able to do this is to change the field type to ... date/time after I transfer the data and run the above-mentioned query. ... +10 AS grcExpDate ...
    (microsoft.public.access.queries)
  • Re: Can I create a date field in a make table query?
    ... string/text to a date in the query like: ... Duane Hookom ... MS Access MVP ... the field type from Text to ...
    (microsoft.public.access.queries)
  • Re: Filtering last 24 hours Records
    ... One approach would be to use a query to add the date of the record and the ... combined date/time within 24 hours of your comparison point-in-time. ... Jeff Boyce ... <Access MVP> ...
    (microsoft.public.access.queries)