Results 1 to 4 of 4
  1. #1
    4 Star Lounger
    Join Date
    Feb 2008
    Location
    United Kingdom
    Posts
    490
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Event Calling (MSACCESS 2003)

    I am trying to call an event from one form to another and having problems finding the correct syntax. A listbox was on the form that called it - List25_Click, but trying Forms(stDocName)!List25B_Click produces a change into red of the codeline. Any ideas, thanks.

  2. #2
    4 Star Lounger SteveH's Avatar
    Join Date
    Jan 2001
    Location
    Chelsea, Gtr London, United Kingdom
    Posts
    587
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Event Calling (MSACCESS 2003)

    Make sure that the procedure is declared as a Public Sub.
    Steve H
    IT Lecturer/Access Developer
    O2K SR3/O2010; Win7Pro

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

    Re: Event Calling (MSACCESS 2003)

    You can call it as follows:

    Form_frmSomething.List25_Click

    or

    Form_frmSomething.List25B_Click

    depending on the actual name of the list box, where frmSomething is the name of the form.

  4. #4
    4 Star Lounger
    Join Date
    Feb 2008
    Location
    United Kingdom
    Posts
    490
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Event Calling (MSACCESS 2003)

    Thanks both. Between you both of you fixed it well. Regards

Posting Permissions

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