Results 1 to 3 of 3
  1. #1
    johnkl49 is offline Novice
    Windows XP Access 2000
    Join Date
    Sep 2009
    Posts
    3

    Thumbs down Basic commands in Access 2007

    I am using a pull down box where I select a key for my employees that call out late, overtime, sicktime, etc. When I enter their call out status by key I would like to populate the appropriate field with the hours they were out. Example (S) for sick time. I want to enter the "S" then in a field I have called sick, enter the hours they were out in a field called sick hours. They same will go for key's OT for overtime will populate the call out as OT and the hours they were out in the OT field.



    If it's too complicated to link a key with the appropriate table I'll just do it the simple way and add the hours manually.

    Thanks

  2. #2
    Icewolf0927 is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    13
    The one way i was thinking is that you could create a form that has a field were they put in the S or OT ect. Then put the fields that you want to have updated with the time on the form and hide them. Then in a macro you can unhide the fields base on what they put in the one field. I hope this makes sense.

  3. #3
    michaeljohnh is offline More Human than Human
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    61
    This should have the basic functionality you are looking for. You'll need to populate the table with your actual employees names and add more categories to the combo box but for demonstrative purposes it should suffice.

    I used a few VBA statements that looks at which selection you choose from the combo box and then sets the corresponding table field equal to its current value plus the value you just entered. That is, the table fields are culmative.
    Last edited by michaeljohnh; 09-23-2010 at 04:18 PM. Reason: editted to provide additional explanation.

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

Similar Threads

  1. Using Access Instead of Visual Basic
    By dinz in forum Programming
    Replies: 2
    Last Post: 12-19-2019, 10:33 AM
  2. Replies: 1
    Last Post: 04-01-2010, 05:40 PM
  3. Basic access issues
    By c2bme in forum Access
    Replies: 1
    Last Post: 03-22-2010, 09:03 AM
  4. help please. i need basic access privacy/protection ideas
    By helpporfavorplz in forum Security
    Replies: 1
    Last Post: 02-20-2010, 05:32 PM
  5. Replies: 0
    Last Post: 09-08-2009, 11:01 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