Results 1 to 5 of 5
  1. #1
    Boost is offline Advanced Beginner
    Windows 8 Access 2013 64bit
    Join Date
    May 2018
    Posts
    47

    Running a SearchForm with unbound textboxes from an Access Query

    Hi there,



    I have a query that pulls related data from two tables - thus allowing me to run searches of the data from one data-source.

    I have created a very basic search form, that contains unbound textboxes related to the query via criteria formatting.

    I am able to do basic searches on static data - IE. that of surname, initials, ID number, etc.

    However, when it comes to attempting to search multi-value fields from the query such as language (which has a multi-value list containing a list of 100 languages) my search form falls over.

    The criteria that I have applied to the single-value fields is:

    Code:
    Like "*" & [Forms]![SearchF]![txtRank] & "*" 
    
    or
    
    Like "*" & [Forms]![SearchF]![txtSurname] & "*"
    What criteria should I be adding to the multi-value fields for them to show up in my search form? I think my issue is that not every data record has a value listed under each multi-value field. IE. the record may not have a language set, which means the record is empty. But i don't know what criteria to apply to ignore this issue.

    I learnt most of what to do from this YouTube video - and have set everything in accordance to what has been outlined here - however do by now have a better understanding of access processes.

    https://www.youtube.com/watch?v=CTiA_4Me0cl&t=379s

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    You've discovered for yourself one of the reasons why most experienced developers do not use multivalue fields.
    They are not easily searchable by standard methods due to the way the data is stored.

    My advice would be to scrap the MVFs and store the items as separate records.
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  3. #3
    Boost is offline Advanced Beginner
    Windows 8 Access 2013 64bit
    Join Date
    May 2018
    Posts
    47
    Cheers for the feedback - I've seen that written elsewhere too.

    I almost have no alternative - unless you could indicate how it would be possible...

    I have been developing a skills and qualifications database that is related to already held company data. Therefore, I have had to relate employee ID's to their particular skill ID. Within the skill ID record, I have multiple columns each containing particaulrs such as the of the particular language, particular qualification etc.

    How could I split these multi-value fields in a streamlined fashion?

    Cheers for your feedback.

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    It's late here and I'm about to log off so I can't provide details.
    The Split function could be used to separate out all the values into separate records.
    Suggest you google how to do so.
    Make sure you backup your data before trying to manipulate it
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  5. #5
    Boost is offline Advanced Beginner
    Windows 8 Access 2013 64bit
    Join Date
    May 2018
    Posts
    47
    Have since shifted my focuses - and have started an alternative forum post that develops on the advice of Ridders52. It can be located:

    https://www.accessforums.net/showthr...505#post402505

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

Similar Threads

  1. Replies: 6
    Last Post: 05-03-2016, 05:21 PM
  2. SearchForm
    By Ray67 in forum Forms
    Replies: 4
    Last Post: 08-20-2014, 09:55 AM
  3. Replies: 9
    Last Post: 01-09-2014, 02:58 PM
  4. Searchform query opened by macro
    By chessico in forum Forms
    Replies: 1
    Last Post: 08-19-2011, 10:03 AM
  5. Get average of unbound textboxes.
    By markhook in forum Forms
    Replies: 8
    Last Post: 07-14-2006, 09:30 AM

Tags for this Thread

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