Results 1 to 3 of 3
  1. #1
    cement is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2010
    Posts
    12

    How to Run some code on record navigation in a Split Form

    Hi,
    i have a split form, and i want some code (VBA) to be run when user navigate next or previous or etc.



    i tried adding code in events (via Code Builder option) of the form but there is this error:
    see the attachment please

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    it may be because the OnCurrent event applies to the entire form; and a split form is fundamentally a continuous form.

    in a continuous form a control named xyz occurs repeatedly - there is just not one of them....

    not 100% sure as I haven't had much reason to implement split forms so far....so consider it just a guess.

    Hope it helps.

  3. #3
    cement is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2010
    Posts
    12
    Thanks for the reply

    lets ask another way:

    what should i do , when i have a split form, and i want to put an imageBox on the top section,so that when the records on the bottom section are navigated, the image on the imagebox changes according to my code. ?

    thanks.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 01-15-2011, 10:56 AM
  2. Cancel form navigation event
    By tuna in forum Forms
    Replies: 3
    Last Post: 08-15-2010, 01:46 PM
  3. Replies: 0
    Last Post: 12-12-2009, 04:45 PM
  4. Replies: 4
    Last Post: 05-12-2009, 01:50 PM
  5. Navigation Code
    By henryclay in forum Forms
    Replies: 2
    Last Post: 11-15-2006, 09:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums