can't seem to get this connection stinr working....any ideas?
Code:
MyConnection.Open "Driver={Microsoft Access Driver (*.mdb)};" & _
"Dbq=c:\path\dbName.mdb;"
.Write "<Select name=Myselectbox><option value="""">Please Select</option>"
Set Myrs = MyConnection.Execute("SELECT name FROM TblName")
Do Until Myrs.eof
.Write "<option value"""&Myrs("name")&""">"&Myrs("name")&"</option>"
Myrs.movenext
loop
.Write "</select>"
Set Myrs = nothing
MyConnection.close
Set MyConnection = Nothing