Hi<br><br>The following code generated by Frontpage works. It gives me a drop down list of countries from my SQL Country table.<br><br><html><br><br><head><br><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><br><meta name="GENERATOR" content="Microsoft FrontPage 4.0"><br><meta name="ProgId" content="FrontPage.Editor.Document"><br><title>New Page 1</title><br></head><br><br><body><br><br><p><nobr><!--webbot bot="DatabaseRegionStart" startspan<br>s-columnnames="Country,Continental_Region,Administrative_Capital,Financial_Capital,International_Direct_Dialing_Country_Code,Major_Currency,Minor_Currency,Constitutional_Status,State_Airline,State_Railway,Flag,Geocabs_Web_Page_Gennifo,upsize_ts"<br>s-columntypes="202,202,202,202,202,202,202,202,202,202,205,203,128"<br>s-dataconnection="GeocabsSQL" b-tableformat="FALSE" b-menuformat="TRUE"<br>s-menuchoice="Country" s-menuvalue="Country" b-tableborder="TRUE"<br>b-tableexpand="TRUE" b-tableheader="TRUE" b-listlabels="TRUE"<br>b-listseparator="TRUE" i-ListFormat="0" b-makeform="TRUE"<br>s-recordsource="Country_Data" s-displaycolumns="Country" s-criteria s-order<br>s-sql="SELECT * FROM Country_Data" b-procedure="FALSE" clientside<br>SuggestedExt="asp" s-DefaultFields s-NoRecordsFound="No records returned."<br>i-MaxRecords="256" i-GroupSize="0" BOTID="0" u-dblib="_fpclass/fpdblib.inc"<br>u-dbrgn1="_fpclass/fpdbrgn1.inc" u-dbrgn2="_fpclass/fpdbrgn2.inc"<br>local_preview=" <span style="color: rgb(0,0,0); background-color: rgb(255,255,0)">Database</span> "<br>preview=" <span style="color: rgb(0,0,0); background-color: rgb(255,255,0)">Database</span> " --><!--#include file="_fpclass/fpdblib.inc"--><br><%<br>fp_sQry="SELECT * FROM Country_Data"<br>fp_sDefault=""<br>fp_sNoRecords="No records returned."<br>fp_sDataConn="GeocabsSQL"<br>fp_iMaxRecords=256<br>fp_iCommandType=1<br>fp_iPageSize=0<br>fp_fTableFormat=False<br>fp_fMenuFormat=True<br>fp_sMenuChoice="Country"<br>fp_sMenuValue="Country"<br>fp_iDisplayCols=1<br>fp_fCustomQuery=False<br>BOTID=0<br>fp_iRegion=BOTID<br>%><br><!--webbot bot="DatabaseRegionStart" I-CheckSum="51573" endspan --><br><select NAME="Country" SIZE="1"><br> <!--webbot bot="AspInclude" startspan CLIENTSIDE<br> U-INCFILE="_fpclass/fpdbrgn1.inc" --><!--#include file="_fpclass/fpdbrgn1.inc"--><!--webbot<br> bot="AspInclude" I-CheckSum="62210" endspan --><br> <option><%=FP_FieldHTML(fp_rs,"Country"

%></option><br> <!--webbot bot="AspInclude" startspan CLIENTSIDE<br> U-INCFILE="_fpclass/fpdbrgn2.inc" --><!--#include file="_fpclass/fpdbrgn2.inc"--><!--webbot<br> bot="AspInclude" I-CheckSum="62218" endspan --><br></select><!--webbot bot="DatabaseRegionEnd" startspan b-tableformat="FALSE"<br>b-menuformat="TRUE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="0" clientside<br>local_preview=" <span style="color: rgb(0,0,0); background-color: rgb(255,255,0)">Results</span> "<br>preview=" <span style="color: rgb(0,0,0); background-color: rgb(255,255,0)">Results</span> " --><!--webbot<br>bot="DatabaseRegionEnd" endspan --><br></nobr></p><br><br></body><br><br></html><br><br><br><br>However I tried DougP's suggestion and I get an error - I think I may have an SQL configuration problem too.<br><br>Doug's code altered to suit my setup I think is as follows:-<br><br><html><br><br><head><br><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><br><meta name="GENERATOR" content="Microsoft FrontPage 4.0"><br><meta name="ProgId" content="FrontPage.Editor.Document"><br><title>New Page 2</title><br></head><br><br><body><br><br><%<br>Set Conn = server.CreateObject("ADODB.Connection"

<br>Conn.Open "driver=SQL Server;server=Mercury;uid=dbo;pwd=superman;database=geocabssql;"<br>Set RS1 = Conn.Execute("SELECT * From Country_Data Where [Country] ='" & somevalue & "'"

<br>%><br><br></body><br><br></html><br><br><br><br>The error I get in the browser is:-<br><br><br>Microsoft OLE DB Provider for ODBC Drivers error '80040e4d' <br><br>[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'dbo'. <br><br>/geocabs/test5.asp, line 14 <br><br><br><br>So now I have two problems !!! I dont know how to write the code and I got a failed login !!<br><br>To repeat or clarify my original problem I want to select a country from the country table and then on the same page select or type in a town and then a database search is done on these two fields. I can now get Frontpage 2000 to give me to input boxes where I have to type both the country and the town but I would like to select the country by querying the table instead - Anyone know the answer (maybe how to modify the form field) to this and the connectivity problem. Technet suggests a permissions problem but I can seem to resolve it<br><br>Aaaarrrrggggghhhhh !!! Computers !!<br>