Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    bishop is offline Novice
    Windows 7 Access 2007
    Join Date
    Feb 2010
    Posts
    21

    You are correct on the last. I will only do it once a month and picked the last and first day of the month as my reminder.

  2. #17
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I would suggest two elements be added to your application. A system table for keeping track of these types of things (a date field would be appropriate here) and a system form that is opened by your AutoExec macro as *hidden*. This form will be the housekeeping form that is the first form to open and the last form to close when exiting the application.

  3. #18
    Join Date
    Feb 2010
    Location
    London, UK
    Posts
    21
    Within the autoexec macro you can set an action to run code. That code would do the date check and display the message.

  4. #19
    MAF4Fam6's Avatar
    MAF4Fam6 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Dec 2009
    Location
    Fruit Heights, Utah USA
    Posts
    140
    Quote Originally Posted by bishop View Post
    I need a macro msgbox to run automatically on the last day and first day of the month. I have been researching this and cannot find anything on it. Please any help is appreciated.
    In the attached Access database (inside zip file), you will find two objects (1 Table/1 Macro).

    1. Export the tblSystem table into your database (IMPORTANT: Export BOTH Structure and Data).

    2. Then, export the mcrMonthlyMsg Macro into your database.

    3. Update the MsgBox MacroActionS per the following screenshot:

    Attachment 688

    4. Last step: Add the mcrMonthlyMsg Macro to your Startup Form's OnLoad event.

    Your message will display ONLY once a month, on the last day or first day of the month, no matter how many times you access the Startup Form.

    -RC

  5. #20
    bishop is offline Novice
    Windows 7 Access 2007
    Join Date
    Feb 2010
    Posts
    21
    Quote Originally Posted by MAF4Fam6 View Post
    In the attached Access database (inside zip file), you will find two objects (1 Table/1 Macro).

    1. Export the tblSystem table into your database (IMPORTANT: Export BOTH Structure and Data).

    2. Then, export the mcrMonthlyMsg Macro into your database.

    3. Update the MsgBox MacroActionS per the following screenshot:

    Attachment 688

    4. Last step: Add the mcrMonthlyMsg Macro to your Startup Form's OnLoad event.

    Your message will display ONLY once a month, on the last day or first day of the month, no matter how many times you access the Startup Form.

    -RC
    Thank you!!!

  6. #21
    MAF4Fam6's Avatar
    MAF4Fam6 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Dec 2009
    Location
    Fruit Heights, Utah USA
    Posts
    140
    It's no problem at all.
    Glad we could help.
    If your issue is resolved please mark your thread as Solved.
    Thanks.

    -RC

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. MsgBox strange/missing icon
    By AndrewAfresh in forum Access
    Replies: 6
    Last Post: 11-11-2009, 10:16 AM
  2. Running a VB function in a Macro
    By JuuJuu in forum Access
    Replies: 1
    Last Post: 10-27-2009, 02:50 AM
  3. Replies: 2
    Last Post: 09-30-2009, 09:40 AM
  4. Alterations to MsgBox command
    By Robert M in forum Programming
    Replies: 4
    Last Post: 06-30-2009, 02:14 PM
  5. pass a variable to the MsgBox function
    By 3dmgirl in forum Programming
    Replies: 2
    Last Post: 04-19-2007, 07:14 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