Results 1 to 5 of 5
  1. #1
    PAJ2 is offline Novice
    Windows 11 Access 2019
    Join Date
    Mar 2023
    Posts
    2

    Cmd Button in Forms - Open blank form

    Greetings.

    I have created a new form and I would like to add a button that would let me open a new window with a different blank form.

    For example, I have a form called inquiry and there is a field for "contact." If the contact is not listed on the drop down list I created from a linked table, I would like the user to be able to add data on the new contact and then go back and choose that contact from dropdown box. In the existing dropdown, I concatenated the contact so it lists the contact name and and associated organization.

    I did this about 15 years ago so my Access skills and memory have seriously deteriorated. I think I need to add a Me.Refresh but I am sure other things are needed in the code.

    Thank you in advance for your help.

    PJ

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I'm not clear on where you need help. Once the contact is added via the other form, you'd want to requery the combo box on the first form.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Should be able to do that using the Not In List event of the combo box. Lots on google etc. See: https://learn.microsoft.com/en-us/of...obox.notinlist
    post back if you need more help with it.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  4. #4
    KNicholson is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2023
    Posts
    6
    Fortunately, MS Access has made this easy now.
    Without any coding, on the contact field, just put the form name of the form that you maintain your contacts.
    Eeek! They automated not-in-list.

    It is the "List Items Edit Form" on the properties sheet under data.



    Attached Thumbnails Attached Thumbnails ListItemsEdit.PNG  

  5. #5
    PAJ2 is offline Novice
    Windows 11 Access 2019
    Join Date
    Mar 2023
    Posts
    2
    Hello.

    Thank you for your help. I can find the "List Items Edit Form" in one form but not another.

    If I add a contact within that, add an organization, the organization refreshes but not the contact name. The contact name is concatenated. If that part of the problem?

    Thank you.

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

Similar Threads

  1. Replies: 4
    Last Post: 04-11-2018, 11:43 AM
  2. Form Open Blank
    By Lou_Reed in forum Access
    Replies: 4
    Last Post: 04-12-2017, 11:19 AM
  3. Open to Blank form and use Find button
    By dmon2010 in forum Forms
    Replies: 1
    Last Post: 04-10-2014, 08:07 AM
  4. How to open a blank form?
    By WhatnThe in forum Access
    Replies: 15
    Last Post: 08-05-2011, 02:41 PM
  5. HOW TO: Button to open different forms?
    By Natan in forum Programming
    Replies: 5
    Last Post: 08-01-2011, 01:58 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