Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 566339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:58:00+00:00 2026-05-13T12:58:00+00:00

please forgive me for my poor english and my big ignorance on programming. I’m

  • 0

please forgive me for my poor english and my big ignorance on programming.

I’m using Ms Access 2003.

Let’s suppose i have two tables:

Table1: ID (autonumber), […], Keywords (memo)

Table2: ID (autonumber), Keyword (text)

I want:
1) As the user types letters in Table1.Keywords that my database searches in Table2.keyword for the nearest value and proposes it by autocompleting (just like google proposes a search word as you type)

2) When user presses “, ” that he can add one more keyword in the same field (and the autocomplete still runs for this next value)

3) If he types a keyword not included in Table2 and press “, ” that he is asked if he wants this value to be added in Table2

Well, i’m not sure if all these are clear… maybe they are a lot of things…

But i’d appreciate if you could help me…

Thanks in advance
J.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:58:01+00:00Added an answer on May 13, 2026 at 12:58 pm

    It would be complicated to do it with a single control, but with two controls, a dropdown list for choosing the value to add, and a textbox displaying the memo field, you could have the combo box’s AfterUpdate event append a comma and the chosen value to the existing data. Something like this:

      Private Sub cmbChooseKeyword_AfterUpdate()
        If Not IsNull(me!cmbChooseKeyword) Then
           Me!txtKeywordMemo = (Me!txtKeywordMemo + ", ") & Me!cmbChooseKeyword
        End If
      End Sub
    

    You’d also want the rowsource of your combo box to not list items that are already entered, so this is one way that would work for a relatively short list of keywords:

      SELECT tblKeywords.*
      FROM tblKeywords
      WHERE InStr(Forms!MyForm!txtKeywordMemo, tblKeywords.Keyword) = 0;
    

    Then you’d add:

      Me.Dirty = False
      Me!cmbChooseKeyword.Requery
    

    …at the end of the AfterUpdate code above (inside the End If):

      Private Sub cmbChooseKeyword_AfterUpdate()
        If Not IsNull(me!cmbChooseKeyword) Then
           Me!txtKeywordMemo = (Me!txtKeywordMemo + ", ") & Me!cmbChooseKeyword
           Me.Dirty = False
           Me!cmbChooseKeyword.Requery
        End If
      End Sub
    

    …and you’d want to add the requery to the OnCurrent event of your form, as well (so that when you arrive on a record, the combo box already omits any keywords that are already in the list).

    Now, all that said, I’d completely recommend against doing this. This is a denormalized way to store the data, and this leads to problems:

    1. what if you want to delete one keyword?

    2. what if you want the keywords to be sorted in alphabeticsal order?

    3. what if you have 100s of thousands of records and you want to search this field with LIKE “*Keyword*” — will it bog down to be terribly slow (no indexes, and not used well even if there were)?

    You really should use a proper many-to-many structure, with an additional table between the one where you’re currently storing the keyword memo and your keyword list table. This “joins” the two, and would then give you a list.

    You could then use a subform with a dropdown list to populate each row of the join table.

    If you like presenting the keywords on reports as a comma-separated list (as you’re currently storing them), you can write a simple function to do the concatenation for you at the presentation layer of your reports (concatenation functions for that purpose are a frequent Access question here on Stackoverflow).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please forgive my ignorance and poor SQL programming skills but I am normally a
Please forgive my poor English, My Problem is that i have a article.php?id=xxx ,
This is my first post, and first please forgive me for my poor english.
Please forgive my ignorance, but I am noob. I have 4 Macs in my
Please forgive the poor code and ignorance this is just a late night hack
Please forgive this noobster. I have tried using several tutorials for getting up and
I don't have much experience with GPUs so please forgive my ignorance. Nowadays, GPUs
Please forgive me if this is an obvious one. I have an unknown amount
Please forgive the verbosity of the following code example. Using Delphi 2009, I created
Please forgive my programming knowledge. I know this is a simple thing, but I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.