Results 1 to 2 of 2
  1. #1
    nukephysicist is offline Novice
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    1

    Enable a check box after printing


    Hello,

    I have been assigned to maintain a database that was designed in Access 97', but has since been converted to 2007. What I have been asked to do is to put a check box on a report showing what active reports have been printed out. This is needed for easier tracking of active or terminated safety permits. Below is code used for printing buttons:

    Private Sub PRINT_Click()
    Dim DocName As String
    DocName = "RWP"
    Visible = False

    DoCmd.OpenReport DocName, A_NORMAL, "SELECT RWP"
    DoCmd.OpenReport DocName, A_NORMAL, "SELECT RWP"



    End Sub

    What code do I need to insert and would it go before the End Sub?

    Any help appreciated.

    Thanks

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    printed out? well what you are really going to record is that the print button was clicked on - - - whether or not it printed, ran out of ink or paper or whatever only a human would know.......

    you need a field to record this; probably just a yes/no field unless you want the date/time.... so that when the print's command button is clicked you manipulate the value of this field.

    Hope it helps.

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

Similar Threads

  1. Enable or Disable Field in Forum
    By lolos66666 in forum Forms
    Replies: 5
    Last Post: 03-13-2011, 05:30 PM
  2. Function to Enable/Disable Field
    By swalsh84 in forum Programming
    Replies: 5
    Last Post: 11-04-2010, 02:48 PM
  3. Replies: 3
    Last Post: 09-29-2010, 09:31 AM
  4. Force user to enable macros
    By tuna in forum Security
    Replies: 1
    Last Post: 05-09-2010, 04:04 AM
  5. could not enable autocorrect
    By easbrandel in forum Access
    Replies: 0
    Last Post: 04-15-2010, 07:10 AM

Tags for this Thread

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