Nothing wrong? Hmmm, it seems to me there is a big mix up between server side VBScript and client side VBScript.
Take a look at this:
Code:
<SCRIPT LANGUAGE="VBScript">
...
Sub okButt_OnClick
...
rmaNo = document.shipdate.callID.value
selectedDay = document.shipdate.day.value
selectedMonth = document.shipdate.month.value
...
set conn = server.createobject("ADODB.connection")
set rs = server.createobject("ADODB.recordset")
AFAICS, the okButt_OnClick will fire
at the client when a user presses a button. Then you retrieve stuff from local HTML form objects using document., which takes place at the client as well.
However, the Server.CreateObject runs at the server.
You'll need to change your coding logic so that the client side button submits the form to the server. At the server you can then use Request.Form("MyFormElement") to retrieve the values from the form and pass them to a database so you can retrieve records from the database based on these values.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.