Results 1 to 3 of 3
  1. #1
    Zach_G is offline Novice
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    3

    How would you do it?

    Looking for some guidance here on what I would think is a relatively simple task, but for the past few days has eluded me.

    I have two tables, "tblProjects" and "tblEmployees" setup with a many-many relationship using a linking table "lnktblProjects_Employees".

    I have a main form in datasheet view "frmProjects" with the record source being "Projects"



    There is a "Date_of_Employment" field in "tblEmployees". What I want is to have the oldest Employee's "Date_of_Employment" to show up on the main form "frmProjects". Any suggestions?

    Zach

  2. #2
    Zach_G is offline Novice
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    3
    Ok, for anyone reading here's what I've come up with so far:

    Created a subform sbfProjects_Employees to show all employees on a project and in the footer of the subform created a control "OldestEmployment" with source =min([Date_of_Employment]). In the main form i created another control box that references the subform =[sbfProjects_Employees]![OldestEmployment].

    This works great... in form view. But in datasheet view all the rows show the the first row value. It's not until after you click on each row does it update with the right value.

  3. #3
    Zach_G is offline Novice
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    3
    Seems I'm hearing myself talk alot in here...apparently it cannot be done. It's as if the subform doesn't exist in the parent in datasheet view until the subform is expanded. The reference to the subform returns #Error until the subform has been expanded and viewed. Maybe a limitation of Access? Any suggested work-arounds?
    Last edited by Zach_G; 11-05-2009 at 12:56 PM.

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

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