Hi,
I use this code a lot as a Lookup
Function BuildSelectControl(strName, strValue)
BuildSelectControl=""
Set rsTemp = server.CreateObject ("ADODB.Recordset")
strSQL =""
strSize = 1
if "MRID" = strName then strSize = 1 : strSQL = "SELECT [MRID], [Fname]&' '&[Lname] as MR FROM [tblMerchandisers] ORDER BY [Lname] " end if
if strSQL <> "" then
For some reason when I used it this time when I go to edit instead or getting a select box I am getting the MRID e.g. 3 instead of Peter Pan.
Any solutions?
Thanks,
Bandit