Results 1 to 4 of 4
  1. #1
    Trisha is offline Novice
    Windows XP Access 2000
    Join Date
    Feb 2014
    Posts
    8

    The macros are runnig in the background of the form

    Dears,

    I have develped few macros in ms access which are called via a form.

    But everytime I click on the command button in the form to exécute the macro the macro open in the background of the form.

    1. The macros open the existing table to add new records.
    2.The form pou up and modal property has been set to yes.



    could you please help how to bring the macros in front.

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    there seems to be a terminology issue; a macro is in essence a vehicle by which one triggers code. there is nothing visible necessarily to be seen in terms of the code doing its job. what the code does may create something visible to the user; and of course the macro itself as a design object can be seen in design view.

  3. #3
    Trisha is offline Novice
    Windows XP Access 2000
    Join Date
    Feb 2014
    Posts
    8
    Hi NTC,

    Let me frame my question.

    I have a form say Form 1

    Form1 is having 3 command buttons to call 3 macros.

    The Macro 1 open the table to add a new row.
    Macro 1 is working fine but after exécution of Macro 1 the table opened in the background of the Form 1

  4. #4
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    add a macro line to SetFocus to the table object

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

Similar Threads

  1. How to put a background on a form
    By Andrias14 in forum Forms
    Replies: 4
    Last Post: 11-22-2011, 01:40 PM
  2. Can a form run in the background?
    By polis in forum Forms
    Replies: 3
    Last Post: 09-11-2011, 06:06 PM
  3. Issue with background image on form
    By sbrookebounds in forum Access
    Replies: 3
    Last Post: 01-20-2011, 02:53 PM
  4. Car Form example and other Background Example
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 08-30-2010, 09:59 PM
  5. background color in a form
    By taggart in forum Forms
    Replies: 1
    Last Post: 05-07-2009, 10:37 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