Skip to Content
author's profile photo Former Member
Former Member

Formatted Search

Hi,

I'm trying to create a Formatted Search to update an UDF. The problem is this formatted search is based in a combo box field, and I can't make reference to the value I see in the form...The reference is a Number of the position of the item in the list of the combo box. How can I make reference to the value of the combo box to compare it in the Query???

regards.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 22, 2005 at 08:59 AM

    1. list all possible Number of the position of the item

    in the list of the combo box.

    2. Link UDF to UDtable, with 2 field :

    Code (fill it with number in the point 1); => @code

    Name (Value you want to update based above code)

    3. Note the Value and Variable of the combo in the

    document.

    4. create a query:

    declare @code as int

    declare @udf as int

    select @code=$[$85.1.0] '=> value and variable of "Contact Person" combo in Order form

    if @code=1

    set @udf=1

    if @code=2

    set @udf=3

    if @code=3

    set @udf=3

    if @code=4

    set @udf=4

    if @code=5

    set @udf=6

    else

    set @udf=7

    select @udf

    5. Assign formatted search in the UDF,

    Choose "Search by saved query" and point to your

    query you've just create.

    Mark "Auto Refresh When Fields Changes"

    Choose "Refresh Regularly and choose field that

    trigger change (field in the combo).

    6. To see the effect, try to choose any value from the

    combo, is UDF updated?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.