Second as you will see i did this code but i have a problem :
1) i want to implement the code as you sent me for this page.
Thats mean i can choose from combo box the vessel and all the other fields will update with the right data from the DB.
2)I want to build the possibility to navigate in the DB as (Next, Priv, First, Last)
3) Need a possibility to add new data, i need to put all the fields.
<%@ Language=VBScript %>
<HTML>
<HEAD>
</HEAD>
<%dim conn
set conn=Server.CreateObject("ADODB.connection")
conn.Open "dsn=hire"
dim rs,sql
set rs=Server.CreateObject("ADODB.recordset")
sql="select * from VESSEL"
rs.Open sql,conn
%>
<%
dim editAction
editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
If (Request.QueryString <> "") Then
editAction = editAction & "?" & Request.QueryString
End If
' boolean to abort record edit
abortEdit = false
' query string to execute Add Record
MM_editQuery = ""
%>
<%
' Movment Of Record
Dim MoveFirst
Dim MoveLast
Dim moveNext
Dim movePrev
Dim Index
Index=rs.RecordCount
MoveFirst=rs.BOF
MoveLast=rs.EOF
%>
<%
' set the record count
hire_total = rs.RecordCount
%>
Bookmarks