Results 1 to 4 of 4
  1. #1
    zashaikh is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    182

    Add wildcards to this FindWords Fucntion?

    Does anyone know how I can add wildcards to this FindWord Function??

    Imnot sure if this is even possible.

    Option Compare Database
    Option Explicit

    Public Function FindAnyWord(varFindIn, strWordList As String) As Boolean

    Dim var


    Dim aWords

    aWords = Split(strWordList, ",")

    For Each var In aWords
    If FindWord(varFindIn, var) Then
    FindAnyWord = True
    Exit Function
    End If
    Next var

    End Function


  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    you refer to the findwords function, but have provided code for a findanyword function which calls a function called findword. I presume this is a typo on your part. I suspect the answer will lie in the findword function - please provide the code for that

  3. #3
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,474
    What code is in the FindWord function? I would think there you would do some type of Like * code.

    Also no need to create Dup post on this: https://www.accessforums.net/showthread.php?t=64321

  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,726
    zashaikh,

    Is this a new topic? If not, then why create a new thread? Keeping all the related info in 1 thread/series of posts on same subject shows the related info-the issue, advice/suggestions, your responses and new questions etc.

    Related post/thread:

    I suggest you give some details of what you are trying to accomplish. Tell readers that you tables are not necessarily designed for relational database (some/many/a few do not have primary keys).

    In my view, and I could be way off-base, you have a piece of a function that you think you need. But you haven't really done the analysis, or have not communicated your requirements (analysis results) clearly.

    You want to search for some "words/strings" in any field in any table. Why do you need to do that? There may be other options for How to achieve WHAT you need.

    Good luck

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

Similar Threads

  1. wildcards
    By THOMASM4425 in forum Access
    Replies: 1
    Last Post: 04-29-2014, 04:06 PM
  2. VBA Wildcards
    By dssrun in forum Programming
    Replies: 11
    Last Post: 03-31-2011, 08:44 AM
  3. SQL Wildcards
    By sandlucky in forum Queries
    Replies: 4
    Last Post: 03-28-2011, 03:31 AM
  4. Using wildcards (*) in SQL
    By SIGMA248 in forum Queries
    Replies: 1
    Last Post: 07-22-2010, 08:44 PM
  5. Wildcards?!
    By esx_raptor in forum Access
    Replies: 3
    Last Post: 02-19-2010, 03:22 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