Page 1 of 2 12 LastLast
Results 1 to 15 of 29
  1. #1
    hendrikbez is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    138

    Words lookup


    Hi

    I want to know if this is possible in access with vb.

    If I have one word like (this is an example) “Hi” as my first column im my table with the name “Word”
    Then I may have 1 to 33 words that has the same meaning of this word, “hallo”, “hey”, howdy”, wassup” eg.
    So I want to make a form and put any of these words in and it must give me. The rest of the words with the same meaning.
    In my table I have columns 1 to 33, on each row I have the first words, and from column 2 I have the rest of the words till 33.
    Is there a sample of this to look at.

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,411
    you need a table to store your words something like

    tblSynonyms
    WordPK
    Word
    GroupFK

    WordPK...Word...GroupFK
    1............Hi.......1
    2............Hello...1
    3............howdy..1
    4............big......4
    5............large...4

    etc

    then when you have your word, find all the records with the same groupFK. Typically GroupFK will be the WordPK for the first record of the group

    Code:
    SELECT S.Word
    FROM tblSynonyms F INNER JOIN tblSynonyms S ON F.GroupFK=S.GroupFK
    WHERE F.Word="Hello"

  3. #3
    hendrikbez is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    138
    Ajax, thank you, but I have a table with about 34 columns and about 990 rows, I must try to put all the words in row in a column and make groupFk with same number to each of them .
    Going to take time to do this, is there a easy way to do this.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Hendrik,

    If I understand your requirement correctly, then your structure is incorrect.
    A structure such as Ajax suggested is a normalized approach and will serve you well.

    Database tables tend to be narrow ( a few fields) and long (many records).

    A database table with 34 fields is somewhat rare (not unheard of).

    If you work through 1 or 2 of the tutorials from RogersAccessLibrary in this link, you will learn and experience a procedure for identifying entities, attributes and relationships.

    Tell us about the table you envision that has 34 fields. A clear description in simple terms.
    Good luck.

  5. #5
    hendrikbez is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    138
    My thinking was to show all the words that has the same meaning (so I search for hello) and it should show all the words (if there is 33 of them) on the form or table, I have done thios so far
    Click image for larger version. 

Name:	2019-08-13 13_32_07-Window.jpg 
Views:	45 
Size:	92.6 KB 
ID:	39422

    But only use the first word to search, but to put 33 of them in to search will be to big, so I am trying to find a better way to do this.

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Be cautious, you are referring to table and form seemingly interchangeably. A table is where data is stored. A table is designed (normalized) to reduce duplication. Normalization is a methodology for removing redundant data from a database WITHOUT losing information.

    A form is for the presentation of data to the user. The format of the data on the form can be, and often is, very different from the table(s) in which it resides. Your example shows a horizontal arrangement, but a vertical arrangement, or varied colors or varied fonts or other could also be used. There may be many ways to "present" the data o the user.

    Identifying all words with similar meaning is achieved through a query as Ajax showed in #2.

    You are now addressing synonyms, but in future you may want to deal with antonyms. For assistance with the concepts involved you may want to research "thesaurus design" and Broader Term, Narrower term....
    Click image for larger version. 

Name:	Thesaurus00.png 
Views:	40 
Size:	16.5 KB 
ID:	39423

    Here's a link on thesaurus concepts/ideas that may be useful.

    Good luck.

  7. #7
    hendrikbez is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    138
    Quote Originally Posted by Ajax View Post
    you need a table to store your words something like

    tblSynonyms
    WordPK
    Word
    GroupFK

    WordPK...Word...GroupFK
    1............Hi.......1
    2............Hello...1
    3............howdy..1
    4............big......4
    5............large...4

    etc

    then when you have your word, find all the records with the same groupFK. Typically GroupFK will be the WordPK for the first record of the group

    Code:
    SELECT S.Word
    FROM tblSynonyms F INNER JOIN tblSynonyms S ON F.GroupFK=S.GroupFK
    WHERE F.Word="Hello"
    Ajax, I have got the xcel to work, to give me the information and is now in the access database, but I an not sure how to use it on a form, to search for any word, if I search word a word, what must I sue to show info on form, and how do I do it.
    A

  8. #8
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,411
    I really can't answer that question - it all depends on how you want your form to work.

  9. #9
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Hendrik,

    Please give a few examples of how you would use this info. We need clarification on the purpose and usage of the database.
    Just give a scenario of
    -user wants to know QQQ
    -what would the user enter into the system
    -what do you expect the system response to be.

    I'm sure readers can help if they understand the underlying issue(s).

    Post a copy of your database and instructions to show the problem. You can use Google translate to help with any (English is not my native language) issues.

  10. #10
    hendrikbez is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    138
    Quote Originally Posted by orange View Post
    Hendrik,

    Please give a few examples of how you would use this info. We need clarification on the purpose and usage of the database.
    Just give a scenario of
    -user wants to know QQQ
    -what would the user enter into the system
    -what do you expect the system response to be.

    I'm sure readers can help if they understand the underlying issue(s).

    Post a copy of your database and instructions to show the problem. You can use Google translate to help with any (English is not my native language) issues.
    Morning orange

    Ok user want to search for a word like "hello" then when pressing search button it must a lst or table ,were it should show the results like "hi",yea", morning" eg.
    User will search for word with button
    User can also add new word to that list.
    The response of server must be, when search fo word, it should show you the output of the same meaning of words, and you can add words to it,
    I have done what Ajax have ask me to do. for my table
    I have made 3 columns in the table " WordPK, Word,GroupFK and then the Id column is also in.

    I have zip the file
    Attached Files Attached Files

  11. #11
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Suggest you give a simple example that you can try with your form. I looked at your database, but do not understand the form or logic. It is not intuitive (to me at least).

    Using your form, can you list/pick a word to be searched, then tell us each step you must take to get the result?

    Where did you get the vba for the event code?

  12. #12
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,411
    Like Orange, struggling to understand how the form is supposed to work

    Best I can suggest is the code required for your filter button would just be

    Code:
    dim vID as long
    vID= nz(dlookup("GroupFK","Sinonieme","Word='" & TXTSinonieme & "'")
    if vID<>0 then
        me.filter="GroupFK=" & vID
        me.filteron=true
    else
        msgbox "word not found
    end if
    probably needs more - but not clear on the actual requirement

  13. #13
    hendrikbez is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    138
    orange, here is a sample of a form that I have done, it is not the correct table and stuff, I just make one, see screenshot.

    The vb code I know will not work on this one.
    Click image for larger version. 

Name:	Screenshot - 2019_08_16 , 15_26_38.png 
Views:	33 
Size:	34.2 KB 
ID:	39473

  14. #14
    hendrikbez is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    138
    Sorry for replying only now, did have a death in my family.

    Here is my databse and form

    1. Button to search word
    2. Textbox to put in word to search
    3. List results for the word.
    4. Data table with info on the bottom

    a. I need help, that it user put in first word that is on the first row first column ,it must give all the words that is in that row intot the list results, and if user put any one of the words in thar row
    it must still give all the words in that row.

    b I do not have code for it, as I am bussy with learning access from videos at the moment, after that, going to do VBA in access (going to take a while to do them). I have programing in access + VBA for 2013
    will it still work in 2016 without any problems.

    5. If getting this to work, I want to take out the data table from the form.
    Attached Files Attached Files

  15. #15
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Hendrik,
    I am not following what you are trying to describe.
    Why would you have fields named 1,2,3.... etc? Use meaningful names. People should not have to guess the subject matter.
    I have taken 1 record and put it through Google translate and have attached a png.
    Please focus on WHAT you want to achieve rather than HOW to do it with Access.

    Can you try again to tell us what these translations are meant to represent?

    put vs sharpening down vs vessel I guess something critical is lost in "translation".

    Please focus on what you are trying to accomplish. Tell us who will use this material/form for what purpose.
    Your English is more than adequate for communication so perhaps you could include a few English examples to help clarify your data/intentions for the English speaking audience.
    Good luck.
    Attached Thumbnails Attached Thumbnails Hendrik01.jpg  
    Last edited by orange; 08-23-2019 at 10:41 AM. Reason: clarification/spelling

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Converting of a few words to the other
    By zozzz in forum Forms
    Replies: 14
    Last Post: 12-23-2017, 01:45 PM
  2. How To add Words
    By aamer in forum Access
    Replies: 7
    Last Post: 11-19-2015, 06:55 AM
  3. Numbers To Words
    By Derrick T. Davidson in forum Reports
    Replies: 19
    Last Post: 03-20-2013, 02:31 AM
  4. numbers to words
    By chavez_sea in forum Access
    Replies: 14
    Last Post: 01-16-2013, 07:25 PM
  5. tags and words in a row
    By bimfire in forum Access
    Replies: 0
    Last Post: 11-07-2007, 10:53 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