Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unknown Function Message? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8)

    I have a table with a field called strProfileCode, Text, Field Size 3 with Default Value =Left(Command(),3), this works OK when a new record is created

    Is there a way to set the above strProfileCode Default Value =GetProfileCode()

    I

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Unknown Function Message? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8)

    The Access help for Validation Rule explicitly states that you cannot use user-defined functions in the Validation Rule of fields in a table and of the table as a whole.
    You can, however use them in the Validation Rule of controls on a form. Since end-users should never enter data directly in a table anyway, that shouldn't be a serious limitation.

  3. #3
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Unknown Function Message? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8)

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •