Results 1 to 6 of 6
  1. #1
    DaveT99 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    76

    Parametric Query Suddently Stops Working

    This has really bugged me, and I have lived with the issue for ages


    I have parametric query, that works fine, then suddenly when I enter the single parameter in the dialogue box, the blank dialogue box reappears

    What I have been doing to reset the query is to go into design and delete the expression LIKE [Enter Noun], run the query and then I go back to design view and repaste the expression and walla it works for some time and the issue reoccurs

    Any ideas or is there a more robust approach. I have had this with many parametric queries over the past 2 years

    Many Thanks

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,450
    what is the full sql to your query - with your LIKE criteria (go to the sql view of the query and copy paste to here)

  3. #3
    DaveT99 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    76
    Quote Originally Posted by DaveT99 View Post
    This has really bugged me, and I have lived with the issue for ages
    I have parametric query, that works fine, then suddenly when I enter the single parameter in the dialogue box, the blank dialogue box reappears

    What I have been doing to reset the query is to go into design and delete the expression LIKE [Enter Noun], run the query and then I go back to design view and repaste the expression and walla it works for some time and the issue reoccurs

    Any ideas or is there a more robust approach. I have had this with many parametric queries over the past 2 years

    Many Thanks

    As requested Alex

    SELECT SPD1.Stock_No, Master_Template.Std_Noun, SPD1.Part_Desc, SPD1.MPN, SPD1.Template_id, SPD1.OMIT, Master_Template.Template_Desc
    FROM Master_Template RIGHT JOIN SPD1 ON Master_Template.Template_Id = SPD1.Template_id
    WHERE (((Master_Template.Std_Noun) Like [enter noun]) AND ((SPD1.OMIT) Is Null));




    Regards

  4. #4
    dashiellx's Avatar
    dashiellx is offline Falconer
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Location
    Baltimore
    Posts
    49
    Quote Originally Posted by DaveT99 View Post
    As requested Alex

    SELECT SPD1.Stock_No, Master_Template.Std_Noun, SPD1.Part_Desc, SPD1.MPN, SPD1.Template_id, SPD1.OMIT, Master_Template.Template_Desc
    FROM Master_Template RIGHT JOIN SPD1 ON Master_Template.Template_Id = SPD1.Template_id
    WHERE (((Master_Template.Std_Noun) Like [enter noun]) AND ((SPD1.OMIT) Is Null));

    Regards
    I'm not sure that would work properly. Generally when using the LIKE evaluation you need to have wildcards so the Access Engine knows where in the search string the value should be.

    Like * [Enter Noun] means WhatEver followed by your entered value
    Like [Enter Noun] * means your entered value followed by whatever
    Like *[Enter Noun]* means your entered value can appear anywhere in the field.

    What is the purpose of the query? What is your end result? There might be a more efficient way to do this.

    William .
    Last edited by dashiellx; 04-30-2020 at 09:11 AM. Reason: spelling/formatting

  5. #5
    DaveT99 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    76
    Quote Originally Posted by dashiellx View Post
    I'm not sure that would work properly. Generally when using the LIKE evaluation you need to have wildcards so the Access Engine knows where in the search string the value should be.

    Like * [Enter Noun] means WhatEver followed by your entered value
    Like [Enter Noun] * means your entered value followed by whatever
    Like *[Enter Noun]* means your entered value can appear anywhere in the field.

    What is the purpose of the query? What is your end result? There might be a more efficient way to do this.

    William .
    In this case there is only the NOUN in the field ie it is a list of spare parts and this is for the Noun, so irrespective of the description in the part description I will pick out all say BEARING(s). I also use the Parametric query with wild cards before and after the criteria

    Sometimes the Bearing may be abbreviated in the description,

    As indicated most of the times they work but now and again they have a wobble, especially this particular one
    Regards

  6. #6
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,450
    I thought this comment

    suddenly when I enter the single parameter in the dialogue box, the blank dialogue box reappears

    mean't you were being asked for 'enter noun' twice

    what is the blank dialogue box asking for?

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

Similar Threads

  1. Its suddently stopped working - help
    By DavidMcArthur in forum Programming
    Replies: 2
    Last Post: 10-04-2018, 11:51 AM
  2. Replies: 2
    Last Post: 07-01-2017, 11:54 PM
  3. How to manage parametric SQL query answer
    By motociap in forum Modules
    Replies: 2
    Last Post: 05-26-2017, 01:30 AM
  4. Working query stops working after importing
    By Abacus1234 in forum Import/Export Data
    Replies: 3
    Last Post: 10-25-2015, 09:12 PM
  5. Append Query Stops Working in RunSQL Command Question
    By McArthurGDM in forum Programming
    Replies: 6
    Last Post: 06-11-2015, 11:17 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