Results 1 to 2 of 2

Thread: [RESOLVED] MS Access - Form_Current event in subform stops firing

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Resolved [RESOLVED] MS Access - Form_Current event in subform stops firing

    I have a subform that has a Form_Current event wired, which is supposed to fire each time you select a different row. In the event, it is calling a Sub from the main form passing in a value from the row. This works the first couple of row selections, but then the event stops firing! Very annoying. As a test, I placed a message box in the beginning of the code to make sure the box shows up, and it does for the first couple of selections. Then nothing as I select other rows.

    Can anyone explain why this might be?

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: MS Access - Form_Current event in subform stops firing

    It was due to disabled fields.

    In the subform, I locked all the fields and set enabled to No for all fields in the form. I also had it in datasheet view. This allowed the user to only be able to select the row by clicking on the row selectors on the left hand side. However, this caused the issue I was having. Once I enabled the fields again, the Current event fired as normal. Weird how it would still fire for the first couple of times, and then nothing after that, but at least it is working now.

Posting Permissions

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



Click Here to Expand Forum to Full Width