Results 1 to 2 of 2
  1. #1
    lmdillon is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2016
    Posts
    1

    Find partial data for multiple fields in a query


    Hello--I have a table I inherited that was not set up properly. This table has several date fields and in each date, a program name and physician name are listed. I need to make tables for each program for all of the date fields.I have used the criteria: Like * & [program name] & *The above works well for one field. However, when I pull down another date field (for a separate date range), no rows will be produced for the table.Any ideas or suggestions would be appreciated. Thanks!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    if date is 1st use LEFT, MID, functions..

    vDate = Left([field],10)
    vProgram = Mid([field],11)

    or find the separators
    I = instr([field]," ")
    vDate = mid([field],I +1)
    vProgram = Mid([field],I-1)

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

Similar Threads

  1. Query to find Partial Match of Column Data
    By rachmorr9 in forum Queries
    Replies: 2
    Last Post: 09-22-2015, 09:09 PM
  2. Deleting partial data in fields
    By rileyma in forum Queries
    Replies: 7
    Last Post: 07-31-2014, 11:42 AM
  3. Replies: 3
    Last Post: 06-24-2014, 10:24 PM
  4. Replies: 3
    Last Post: 11-12-2012, 10:44 AM
  5. Replies: 1
    Last Post: 04-30-2012, 08:42 AM

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