Results 1 to 5 of 5
  1. #1
    wnicole is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    118

    Checkbox Closed...PopUp

    I want to create a simple warning that says "this project is closed are you sure you want to enter data"
    When a project is check off as Closed I want to trigger this msgbox when any new information connected to that project number is entered.

    I don't know how to do this. DOn't want to necessarily do it from a form angle as info can be enter from different forms.
    I was wondering is there a way to do it from table angle. The checkbox for Closed is in the table of the projects. So when they check that off I want to make sure that any new expenses or updates made to that project will trigger this msgbox.

    Can you help with any code that can do this?


    Thanks

  2. #2
    sdel_nevo is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    Gloucester, UK
    Posts
    402
    Hi wnicole

    could you do it by a lookup? i do pritty much the same thing, i check to see if someone has market a invoice as closed so if someone tries to open it they get a message telling them as such and they can't alter it

    checkbox = DLookup("[checkboxname]", "[tablename]", "[CompanyID]") "alter these to suit"
    if checkbox = true then
    msgbox "test"
    end if

    you could put this on the onclick event of the check off process

    hope this helps

  3. #3
    wnicole is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    118
    I tried this and it works when u want to control just the checkbox however I want to control and new entries to that record that is closed. So if someone try to change any field in a record that is check off closed they get this msg box . Can you assist

  4. #4
    sdel_nevo is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    Gloucester, UK
    Posts
    402
    Hi

    could you not put the above into the on open event of the form that holds the fields?

    Steve

  5. #5
    wnicole is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    118
    Sorry typed in wrong thread

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

Similar Threads

  1. Form not getting closed at first time
    By vikasbhandari2 in forum Programming
    Replies: 10
    Last Post: 07-20-2012, 01:25 PM
  2. A2010 compacting every time the DB is closed.
    By irish634 in forum Access
    Replies: 5
    Last Post: 03-02-2012, 04:28 PM
  3. Replies: 4
    Last Post: 08-17-2011, 05:30 AM
  4. Print a Closed case
    By lyndon.pace in forum Reports
    Replies: 1
    Last Post: 04-11-2011, 11:35 AM
  5. Get column headings from closed Workbook
    By Deutz in forum Access
    Replies: 1
    Last Post: 12-10-2010, 09:06 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