Results 1 to 6 of 6

Thread: focus (2000)

  1. #1
    4 Star Lounger
    Join Date
    May 2003
    Location
    Manchester, Gtr Manchester, England
    Posts
    552
    Thanks
    0
    Thanked 0 Times in 0 Posts

    focus (2000)

    Hello, I have a button to add records on a sub form. The form is shown as a continuous form. When a record is added I want that button in the added recordo become inactive and only the button for the next record to be available for clicking, is this possible since the button is the same be it on old records or the current record?

    Thanks Darren.

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

    Re: focus (2000)

    There is only one set of controls on a continuous form. If you enable or disable a control, it will be enabled or disabled in all records. Perhaps you can put the button on the main form? (The code behind it would have to be modified)

  3. #3
    4 Star Lounger
    Join Date
    May 2003
    Location
    Manchester, Gtr Manchester, England
    Posts
    552
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: focus (2000)

    Thanks Hans, suspected as much, had toyed with the idea of the control on the main form, not sure how to code though...

    Ta again Darren.

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

    Re: focus (2000)

    Depends on how you create the new record, so please provide more info.

  5. #5
    4 Star Lounger
    Join Date
    May 2003
    Location
    Manchester, Gtr Manchester, England
    Posts
    552
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: focus (2000)

    Thanks, ok would like the button on the main form (main) to add records on the child form but only updating the next new record or indeed an old record that has focus. The child form is continuous.

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

    Re: focus (2000)

    What code were you using in the subform?

Posting Permissions

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