Results 1 to 4 of 4
  1. #1
    eww is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2010

    Trouble with updating/populating

    This is an interesting one. I've got a timesheet form where employees log their hours to a job number (which is populated from the original form/table where it is entered called ProjectInfo). Then back on the Project Info Form I have a box that I want to populated with the totaled hours that either one employee or various employees have logged to that job number.

    The way I've been going about it so far is I made a query totaling the number of hours, but then I'm not sure how to get that back into the project for to the specific job number that they are related to (without the user having to choose the job number again from a combo box).

    I tried to use an update query to update the field in the Project Info table but that doesn't work for some reason (I think it has something to do with the query I used having sums instead of just a lookup query)

    I'm not really sure what the right way is to go about doing this.

  2. #2
    dynamictiger is offline Novice
    Windows Vista Access 2007
    Join Date
    Apr 2010
    One way to do this is to add a field to the job forms footer. This contains the =sum(time) as the control where time is the name of the text box containing the time durations.

    Once you have this information you can then link to it from the project form however you want.

    Interesting I am working on the same sort of application. How far along are you?

  3. #3
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    What occurs to me is that the Project Info Form would typically have a subform listing the details of all the hours spent who, why, when, what, etc......and also providing a total of the hours.

  4. #4
    eww is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2010
    NTC you hit the nail on the head with the subform suggestion. I have to admit at first I was a little confused why/how that would work (especially since I only need 2 controls, I didn't want to create a whole subform for them) but I tried it and it works. So be it!

    thanks a lot.

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

Similar Threads

  1. Iff trouble
    By JackT in forum Access
    Replies: 3
    Last Post: 08-18-2010, 02:28 PM
  2. new guy with a question on auto populating
    By zdiver07 in forum Forms
    Replies: 2
    Last Post: 05-03-2010, 11:06 PM
  3. Populating Fields
    By deiniolj in forum Forms
    Replies: 21
    Last Post: 12-08-2009, 10:51 AM
  4. Self Populating Fields
    By kellyd in forum Access
    Replies: 0
    Last Post: 09-17-2009, 10:20 AM
  5. Self-populating one form from another
    By winter in forum Forms
    Replies: 7
    Last Post: 08-03-2009, 08:02 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