This topic is locked

Lookup Wizard

1/2/2004 9:12:34 AM
ASPRunnerPro General questions
bajrai author

Hi Sergey
In the field lookup option wizard, if I has it lookup a table and I need a default value to be (3), not (please select) automatically during add new record entry, due to field relationship. Please help?
Thanks

Sergey Kornilov admin 1/5/2004

Bajrai,
here is how you can do this.
Open ..._aspfunctions.asp file in any text editor.

Find function named BuildSelectControl and make changes in bold:

Function BuildSelectControl(strName, strValue)

   Â

 if strName="YourFieldNameHere" and strValue="" then

    strValue="AnyValueFromTheListHere"

 end if



BuildSelectControl=""

Set rsTemp = server.CreateObject ("ADODB.Recordset")


I hope this helps.
Best regards,

Sergey Kornilov