Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

Why do I get "unknown function 'date'"

Discussion in 'Information Technology' started by Pete Whalley, Jul 28, 2006.

  1. Pete Whalley

    Pete Whalley
    Expand Collapse
    Guest

    I am running Microsoft Office Access 2003(11.6566.6568). I had created a
    table with a field having validation "Not >Date()". This was working well
    but now when I try to use the same function elsewhere, or even access the
    original table I get a message "Unknown function 'Date' in validation
    expression or default value in Table.Field Name". Access still however lets
    me pull in the built in function Date.
    Any ideas how to cure this or what might have happened.
     
  2. Loading...


  3. Douglas J Steele

    Douglas J Steele
    Expand Collapse
    Guest

    Two common reasons.

    First is that you're using the word Date somewhere in your application for
    your own purposes: the name of the field in a table, the name of a variable,
    the name of a function, etc. Date is a reserved word, and shouldn't be used
    for your own purposes.

    Second is that you've got a problem with your References collection. Like
    virtually every other Windows application, Access makes use of external
    references to provide additional common functionality. There are a number of
    circumastances that can lead to the References collection getting corrupted
    (installing new software that replaces one or more of the existing
    references, moving the application to another workstation where the
    references are a different version or do not exist, etc.)

    Open any code module, then select Tools | References from the menu bar.
    Examine all of the selected references.

    If any of the selected references have "MISSING:" in front of them, unselect
    them, and back out of the dialog. If you really need the reference(s) you
    just unselected (you can tell by doing a Compile All Modules), go back in
    and reselect them.

    If none have "MISSING:", select an additional reference at random, back out
    of the dialog, then go back in and unselect the reference you just added. If
    that doesn't solve the problem, try to unselect as many of the selected
    references as you can (Access may not let you unselect them all), back out
    of the dialog, then go back in and reselect the references you just
    unselected.

    (NOTE: write down what the references are before you delete them, because
    they'll be in a different order when you go back in!)

    --
    Doug Steele, Microsoft Access MVP
    http://I.Am/DougSteele
    (no e-mails, please!)


    "Pete Whalley" <PeteWhalley@discussions.microsoft.com> wrote in message
    news:8DFD4318-7B0B-4CEA-87DF-B8F7D2267670@microsoft.com...
    > I am running Microsoft Office Access 2003(11.6566.6568). I had created a
    > table with a field having validation "Not >Date()". This was working well
    > but now when I try to use the same function elsewhere, or even access the
    > original table I get a message "Unknown function 'Date' in validation
    > expression or default value in Table.Field Name". Access still however

    lets
    > me pull in the built in function Date.
    > Any ideas how to cure this or what might have happened.
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page