Results 1 to 3 of 3
  1. #1
    KMSER is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Posts
    1

    Pulling information from a Table into a Form

    I am new to Access so bear with me.



    I have three Tables and three Forms: Job ID, Tool ID, and Tool Log ID. On the Tool Log Form I want to be able to Log tools in and out. On the Log Form I want it to show 1) Job Name 2)Tool Name 3)Tool Quantity 4)Check-out Date 5)Check-in Date. I have not had a problem getting it to pull the information from the other IDs for 1, 2, 4, and 5, but when it comes to 3, the Tool Quantity, I want to make sure that the value in the Log Form does not exceed the value in the Quantity Owned Field located in the Tool ID Table/Form. In other words, I do not want to allow us to accidentally check-in (10) ladders when we only own (9). How do I go about doing this?

    Originally I had just included a Quantity Owned Field in the Log ID, and planned to create a validation rule for the check-in/out quantity that said not to exceed the value in Quantity Owned. In order to do that I tried to pull the value from the Quantity Owned Field in the Tool ID table into the Log Form by using an expression in the Control Source of the Quantity Owned Box. I'm not sure if I just was not getting the expression right, or if it is not possible to pull that information from a table onto a form, or something else completely. Advice?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Trying to save aggregate data to table is tricky. Ideally, this should be calculated from records of increases and decreases, commonly done with an inventory database. Instead of tracking quantity, you could have a record for each asset (means physically tagging each item, which you should do anyway if you are going to make employees accountable for them) and if asset is checked out it would not be available to another user. Sounds like the Lending Library template. Check it out http://office.microsoft.com/en-us/te...010206883.aspx
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    cplmckenzie is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    25
    examples of your work always provides better clarity than words alone ever will.

    without that most answers are a shot in the dark ... at best.

    cplmckenzie

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

Similar Threads

  1. Replies: 3
    Last Post: 05-12-2012, 10:54 AM
  2. Pulling Excel Cell Information via Dynamic URL
    By brenthardy in forum Programming
    Replies: 1
    Last Post: 01-11-2012, 07:16 PM
  3. Replies: 1
    Last Post: 12-05-2011, 03:26 PM
  4. Replies: 1
    Last Post: 09-30-2011, 06:54 PM
  5. Replies: 0
    Last Post: 11-11-2008, 07:15 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