Results 1 to 8 of 8
  1. #1
    baseballrock17 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    4

    Form Design Questions

    A 2-part question that i am certain has been asked hundreds of times but I cannot find a direct answer:

    I have created a DB with several tables. PKs, and FKs are set up in the Relationships view. For example I have a tblClient (one) with a FK to tblAttorney (many).

    1) As I'm adding a client to the DB, I'd like the form to present me with a drop down list of the lawyers and their firms that are already in the DB. Once selected, it should provide the AttorneyID in the table.



    2) Unless the attorney isn't in the DB yet, what is the best way to direct the user to a form or subform where they can enter the Attorney information in THEN select the attorney for the client.

    A point in the right direction would be most helpful... I'll take a tutorial or a link to another post. Whatever works. Like i said i know this question must get asked all the time. I just cant find the answer.

    Thanks in advance.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The ComboBox wizard can assist with that control and the NotInList event is just what you need to pop up another form to add another Attorney.

  3. #3
    baseballrock17 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    4
    Good stuff, RG. Thanks so much for the helpful response!

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You're welcome. Post back here if you are still having a problem with this issue.

  5. #5
    baseballrock17 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    4

    Smile

    Quote Originally Posted by RuralGuy View Post
    Post back here if you are still having a problem with this issue.
    You asked for it,now!

    I am using an event procedure to open the "other" form. Another 2-part question:
    1)How can I make the form open in New (blank) record state?

    2)Once I'm done providing the info to the "popup" form, is there a way to post this record back to the original form?

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You should be using the NotInList event of the ComboBox to open the other form. Are you? I'll answer your 2 questions in a minute.

  7. #7
    baseballrock17 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    4
    I put the procedure in the wrong event. Now it works as expected.

    DoCmd.OpenForm "frmAttorney", acNormal, , , acFormAdd, acDialog opens the form in new Record view. Once added and saved, question 2 works correctly.

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Bingo!! It sounds like you have it sorted now.

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

Similar Threads

  1. Personnel Budgeting Design Questions
    By Megblue in forum Database Design
    Replies: 5
    Last Post: 05-08-2012, 11:58 AM
  2. Relational Database Design Questions
    By mribnik in forum Database Design
    Replies: 40
    Last Post: 08-09-2011, 02:57 PM
  3. Replies: 1
    Last Post: 08-06-2011, 10:45 PM
  4. Learning Access - Design Questions
    By learning_access in forum Database Design
    Replies: 2
    Last Post: 02-15-2011, 09:13 AM
  5. Best Design for Multiple Y/N Questions on each record
    By DanielHochman in forum Database Design
    Replies: 0
    Last Post: 07-20-2009, 02:51 PM

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