Welcome to SPN

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

Sign Up Now!

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.
     

Share This Page