• Adding New Record Directly in Lookup Box

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Adding New Record Directly in Lookup Box

    Author
    Topic
    #461353

    Is it possible to add a new value/record directly in the Lookup Box?
    For example, can I type “Academic Press” directly in the Lookup Box? How?
    The publisher field (column) actually stores PublisherID (autonum data type).
    Armstrong

    Viewing 1 reply thread
    Author
    Replies
    • #1170184

      You can use the Not In List event to trigger the addition of a record in the Publisher record using either DAO or ADO, and then save the record in the combo box. Search for that event in the Access forum and you will find several discussions about doing that.

      • #1170185

        You can use the Not In List event to trigger the addition of a record in the Publisher record using either DAO or ADO, and then save the record in the combo box. Search for that event in the Access forum and you will find several discussions about doing that.

        Hi WendellB,
        Thanks for your rapid rescue. At least you tell where I can start.
        Thanks a lot.
        Armstrong

    • #1170194

      What version of Access are you using?
      2007 has made a lot of changes in this area.

      • #1170200

        What version of Access are you using?
        2007 has made a lot of changes in this area.

        Yes, 2007 is the working version.
        Armstrong

        • #1170203

          In 2007 there are now

            [*]Allow Value List Edits
            [*]List Items Edit Form

          Properties for Combo boxes (and List boxes)

          If they are set to Yes, then you can edit the relevant list with a Right Click.

          But I still prefer to use a “not in list” event.

    Viewing 1 reply thread
    Reply To: Adding New Record Directly in Lookup Box

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: