Skip to main content

Search

Search

How To Submit Query Required Data Without User Prompt Using Mixed Oledb Source And Substrings In Vb Code ?

Comments

3 comments

  • Avatar
    Ian Cummings
    Moderator

    Are you trying to set the query prompt value in the document in order to return a record set for printing?  If so do this like the below examples:

     

    // Set a QueryPrompt to use the default reply, using its index.
    queryprompts[0].Value = queryprompts[0].DefaultReply;
    
    // Set a QueryPrompt's value using its name (case sensitive).
    queryprompts["QueryPrompt1"].Value = "New Value";
    
    // Or do the same as the above line with the SetQueryPrompt method.
    queryprompts.SetQueryPrompt("QueryPrompt1", "New Value", "New Default Reply", "New User Prompt");
    
    
    0
  • Avatar
    Legacy Poster

    Yes.. I tried it and it works but for some fields (not all) my application must be able to override the values returned from the integrated label query with other values returned from stored-procedure and I don't know if is possible and how to make it (named substring ?).

     

    Thanks

    0
  • Avatar
    Legacy Poster

    Perhaps it might be useful to change 'on the fly' the selection of data:

     

    btFormat.Databases.GetDatabase(1).OLEDB.SQLStatement = NewSQLString
     

     

    but I do not know if this is possible in your case.

    It's worth a try.

    0

Please sign in to leave a comment.