Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,936

    From post 3: The only approach I can think of is a parameterized query where the combobox is referenced under each of the 14 fields, each on a separate Criteria row to invoke the OR operator (looks like stair steps).

    LIKE operator is not useful without wildcard. Might as well just use = sign.

    The criteria under each RawPartNumber field would be:

    LIKE "*" & [Enter the part number you are looking for] & "*"

    Or if you use a textbox or combobox for user to input the value:

    LIKE "*" & Forms!formname!comboboxname & "*"
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  2. #17
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    If you're going to use LIKE you have to provide wildcards or it will look for an exact match

    Like "*" & [Enter the Part Number] & "*"

    Then use the same criteria for each part number on your table, however, I do not think you can have 14 OR statements in a query (another reason to normalize even if it's painful)

    The other option is to have an indicator field like

    ShowMe: iif(instr(rawpartnumber1, "*" & [Enter the Part Number] & "*") > 0, 1, iif(instr(rawpartnumber2, "*" & [Enter the Part Number] & "*") > 0, 1, iif(instr(rawpartnumber3, "*" & [Enter the Part Number] & "*") > 0, 1,... and so on until part number 14)))

    Then have a criteria of 1 in the ShowMe calculated value field.

  3. #18
    ch5150 is offline Novice
    Windows 7 64bit Access 2000
    Join Date
    Nov 2014
    Location
    The Great Central Valley of California
    Posts
    17
    Okay! Now we are getting somewhere. Thank you very much! I did the Like query and it seems to be working.Click image for larger version. 

Name:	WildCardIsLike.jpg 
Views:	7 
Size:	149.2 KB 
ID:	18635 And it is clear that I will only be able to go out to RawPartNumber9... However, the normalization issue has been a greater challenge so far. I created a subform with a continuous form field attached via the work order number but it won't allow input until the new record has been created and that only occurs when the form is closed. My thought was to create a button on an existing search form to call up an existing review form having the underlying data filtered by the query. And rpeare, I am not sure about how to implement your suggestion regarding an indicator field.

  4. #19
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,936
    With a properly designed form/subform arrangement, the new record on main form will be committed to table when focus is shifted to the subform and thus allows data entry in the subform for related dependent records.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #20
    ch5150 is offline Novice
    Windows 7 64bit Access 2000
    Join Date
    Nov 2014
    Location
    The Great Central Valley of California
    Posts
    17
    I created a form based on the query. Opening the form prompts the user for the part number. It opens to show the work order and customer name for each matching record (The actual RawPartNumber fields are hidden). They then doubleclick the desired work order number and it opens the frmOperatorReports to the desired record. WAY TO GO!!!!! Thank you very much! I can't even say how much I appreciate your patience with me and how much I have learned even in this little bit of instruction. I would love to get to the point of normalizing the db but I was under the gun to provide a solution before the annual audit... And to that extent, Mission accomplished!

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

Similar Threads

  1. Overcoming Access Version problems
    By Xipooo in forum Access
    Replies: 1
    Last Post: 02-17-2014, 12:01 PM
  2. I am so confused on how to normalize the data? please help???
    By coffayndtea in forum Database Design
    Replies: 2
    Last Post: 03-28-2012, 07:52 PM
  3. Author of Database
    By tmcrouse in forum Access
    Replies: 5
    Last Post: 09-23-2011, 07:26 AM
  4. To normalize or not
    By blazerboy6 in forum Database Design
    Replies: 5
    Last Post: 08-10-2011, 02:58 PM
  5. Replies: 13
    Last Post: 05-23-2011, 07:12 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