Results 1 to 10 of 10
  1. #1
    Juan4412 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Dec 2010
    Posts
    209

    Recording Username


    I have my form recording the username and date/time that the record was entered. Now I have to make addition to the form that is a yes/no box. The tickbox will only be checked "Yes" and then locked so I guess it is really a "Yes" box. I want the form to record what user name checks this yes tickbox.

    A little background this is a database that calls back customers who we have incomplete orders on, but I need to check if the customer has already been called today. And then I would run a query daily to determine who was called, and of course who called this person. I have one group of people that enter the initial order, and then a second group that calls back if the order is incomplete. So is there a way to record the user name that checks the tick box for "Yes?"

    I have the form already recording the username that input the record.

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Quote Originally Posted by Juan4412 View Post
    I need to check if the customer has already been called today.
    Are you contemplating un-checking the box every night? And erasing who made the call? Otherwise, a call yesterday will have checked the box and it won't show up for today. It would seem to make more sense to have a related table that recorded the dates of each call, and who made them. Then you can check that table to see if a call was made today.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Juan4412 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Dec 2010
    Posts
    209
    my thoughts were to bbefore close each night run an update query that would clear the caled flag.

    how would i have one form bound to two tables like what you are referencing? i do not understand how to make this occur?

  4. #4
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You can run the update query if you want to go that way. It wouldn't be hard to add the username to a field when the checkbox is checked. To go the other way might involve a subform, or simply populate the table in the background.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Juan4412 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Dec 2010
    Posts
    209
    i have it set up to record the username of whom input that record, how would i capture the username of the user who checks the box?

  6. #6
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Presumably the same method you use for the input. How do you do that?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    Juan4412 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Dec 2010
    Posts
    209
    I use the fosusername procedure I found on this site to record the name of who enter entry. How would I use that to record who checked the tickbox?

  8. #8
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    In the after update event of the checkbox, test the value of the checkbox. If true,

    Me.WhoCheckedIt = fosusername

    otherwise you probably want to empty it (in case somebody checked it by mistake and unchecks it):

    Me.WhoCheckedIt = ""
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  9. #9
    Juan4412 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Dec 2010
    Posts
    209
    Oh my goodness, I did not even realize that I could add an Event procedure to a specific item on my form (like the tick box). I knew that you could do it for the form in its entirity but not a single item. Thank you for the prompt response, and wonderful assistance. You are an asset to all!!!

  10. #10
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Username For Sharepoint
    By is49460 in forum SharePoint
    Replies: 0
    Last Post: 10-08-2010, 05:40 PM
  2. Recording Test Scores and Radar Charts
    By splitz in forum Access
    Replies: 1
    Last Post: 08-19-2010, 12:34 PM
  3. request username and password
    By meysam_e2006 in forum Access
    Replies: 2
    Last Post: 07-02-2010, 02:03 AM
  4. time recording
    By Back2Basics in forum Access
    Replies: 3
    Last Post: 02-02-2010, 08:39 AM
  5. Replies: 0
    Last Post: 12-01-2008, 03:01 PM

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