Re: Using Date as one of the field in Access

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Jack

Date is a reserved Word in Access (it is actually a function). Try using a
tag in front of the word date or add a more descriptive word before the word
date and your query should work (so long as the syntax is correct which I
did not check).

HTH

Debra
"Jack" <Jack@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:14F64492-9049-451E-B545-0B651B8283F0@xxxxxxxxxxxxxxxx
> Thanks for your advise. I changed my update code as:
> UPDATE tblExpense SET Date = #03/15/2005# , contractedServiceExpense='15',
> travelexpense='20', pesonnelexpense='5' WHERE tranid='2'
> With this change though the same error is there with the date field being
> highlighted. Any thoughts? Regards.
>
> "OsmarJr" wrote:
>
> > Try:
> >
> > UPDATE tblExpense SET Date = #03/15/2005#,
> > contractedServiceExpense='15', travelexpense='20', pesonnelexpense='5'
WHERE
> > tranid='2')
> >
> > Dates and times must be enclosed in ##.
> >
> >
> > "Jack" escreveu:
> >
> > > Hi,
> > > I am using Date as one of the fields in a Access table. Now when I am
tring
> > > to run a update query (UPDATE tblExpense SET Date ='03/15/2005',
> > > contractedServiceExpense='15', travelexpense='20', pesonnelexpense='5'
WHERE
> > > tranid='2') , I am getting an error with a highlight on Date. I do no
know
> > > why this is happening. I would appreciate any help on this. Thanks.
Regards.


.



Relevant Pages

  • Re: ASP.NET Images are not displayed
    ... Richard Hein ... >>and img tag. ... > Would you please tell me how do you specify the picture's location in your ... > Best regards, ...
    (microsoft.public.vsnet.ide)
  • Re: HTML Paragraph question
    ... Regards ... > Hi de Jager, ... > Browsers display the tag with some space between if you dont tell them ... > if you want to keep the tag. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: running a query in a loop
    ... > As regards your code... ... I can only see one place where it will definitely choke, ... > The word 'date' is a Reserved Word in Access, ... I doubt that Access would call it a syntax error. ...
    (microsoft.public.access.modulesdaovba)
  • Re: PAF help please - Selecting individual families for a gedcom export
    ... Regards, ... Di Maloney ... | With PAF you can export a gedcom selecting the "All Ancestral Related" ... After clearing all tags I ...
    (soc.genealogy.computing)
  • Re: I know HTML, I know CSS - So why cant I select some text and apply a style to it?
    ... Wait - is the text you selected NOT currently wrapped in an tag? ... A descendent selector might be a better way to go, however, e.g. ... Thanks Ravi, but I can't find the menu options you mention. ... Regards, ...
    (microsoft.public.frontpage.client)