Results 1 to 8 of 8
  1. #1
    aceoftrades is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2012
    Posts
    35

    Form with Linked PopUp Form

    I have a form frmClient that is a tabbed form. Client Info / Project (frmProject_subform) / Calls (frmCalls_subform) ... in the tabbed Project section I need to be able to add Employee Hours, Contractor Hours and Products. There is not enough room to do this through a subform so I was hoping to do it through buttons (ie. Employee Hours button opens popup form frmProject_Employee_Hours (tblProject_Employee_Hours) which is linked to the current project form and different employees hours can be added.) Same with Sub Contractors and Products This is proving harder than expected...any suggestions are appreciated

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    Can you be more clear about what 'this is proving harder than expected... ' means

  3. #3
    aceoftrades is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2012
    Posts
    35
    Sorry...it doesn't work as far as I can tell since there isn't a Master/Child Link between the frmProject_subform and frmProject_Employee_Hours. If I put the frmProject_Employee_Hours on the frmProject_subform as a subform it works because they are linked but as I said I won't have the room on the form to put these subforms.

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    so you are having trouble creating a link between the two tables involved.

    The way I have handled this (one of them anyway) is that when you want to enter information on this secondary form when you open it have a combo box on that form that is unbound. Have that combo box's primary key be the employee_ID and force the selection of that combo box to be whatever is currently displayed on the 'main' form. (basically set the locked value to true). Use that as a criteria to look up the employee on this secondary form and bind the data source to the employee table. Then create a subform to enter the data you want. If you've correctly locked the form all data entry on this secondary form/subform will be applied to the employee on the main form.

  5. #5
    aceoftrades is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2012
    Posts
    35
    I'm really not following...Can you be a little more detailed as I'm new to Access... I currently have the secondary form frmProject_Employee_Hours which has WeekEnding_Date (text box) Employee_Hours (text box) and Employee_ID (combo box) Employee_ID is a query which displays the current employees in the combo box but puts the employee id in the Employee_ID field of the table. It works perfect when is placed as a subform on the form frmProject_subform which is the form on the page Projects. When don't have it as a subform but rather a separate form which is opened by a button within the form frmProject_subform (ie Enter Hours) I get the error message "You can not add or change a record because a related record is required in the table tblProject. " I'm assuming because it is not linked.

  6. #6
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    can you upload a sample of your database, I'd rather not have to recreate an example from scratch.

  7. #7
    aceoftrades is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2012
    Posts
    35
    how would I do that?

  8. #8
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    make a copy of your database, take out any information you feel is sensitive but put in enough data to help solve the problem, compact/repair the database, zip it up and upload it through the GO ADVANCED option.

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

Similar Threads

  1. Replies: 11
    Last Post: 01-10-2013, 06:23 PM
  2. Popup form refreshes main form?
    By kawi6rr in forum Programming
    Replies: 2
    Last Post: 08-04-2012, 09:17 AM
  3. Replies: 1
    Last Post: 02-29-2012, 09:38 AM
  4. Linked tables SQL Server login popup
    By geremore in forum Programming
    Replies: 3
    Last Post: 08-16-2011, 12:47 PM
  5. Updating Main form from a popup form
    By wdrspens in forum Forms
    Replies: 21
    Last Post: 06-13-2011, 01:34 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