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

    Error 2108 Must save field before SetFocus? (a2k (9.0.6926) SP-3 Jet 4.0 S

    When entering Vaccination Period if Vaccibation Date is null I want to return focus to Vaccination Date

    I

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

    Re: Error 2108 Must save field before SetFocus? (a2k (9.0.6926) SP-3 Jet 4

    You can't go to another control in the Before Update event of a control. You should either omit the SetFocus instruction, or use the Before Update event of the form instead.

  3. #3
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: Error 2108 Must save field before SetFocus? (a2k (9.0.6926) SP-3 Jet 4

    Since you already used the Undo method to restore the value of the field, just try omitting the "Cancel = True" line of code.
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

Posting Permissions

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