on 02-21-2005 9:54 AM
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.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.