I have a sub to open a table using ADO (part of the codes are shown below), but I got error "Object required". I added microdoft activex data recordset 2.5 library and microsoft activex data object 2.1 library. But could not find the control on the menu like other standard controls.
Is that the problem? Thannks.
swingXH
--------------------------------------------------------
Dim conn As ADODB.Connection
Dim rst As ADODB.Recordset
Dim sql As String
Set conn = Server.CreateObject("ADODB.Connection")
conn.Provider = "Microsoft.Jet.OLEDB.4.0"
conn.Open "U:\ReferenceOnDatabase\ADO.mdb"
Set rs = Server.CreateObject("ADODB.recordset")
rs.Open "Employees", conn
---------------------------------------------------------
Is that the problem? Thannks.
swingXH
--------------------------------------------------------
Dim conn As ADODB.Connection
Dim rst As ADODB.Recordset
Dim sql As String
Set conn = Server.CreateObject("ADODB.Connection")
conn.Provider = "Microsoft.Jet.OLEDB.4.0"
conn.Open "U:\ReferenceOnDatabase\ADO.mdb"
Set rs = Server.CreateObject("ADODB.recordset")
rs.Open "Employees", conn
---------------------------------------------------------