kuvo
August 16th, 1999, 08:48 AM
Hi ,
Can anyone give me the codes to open
"MyDatabase.mdb" and open new table "MyTable" to add data to that table
Thanks
askus
August 19th, 1999, 04:47 AM
public MyConn as ADODB.Connection
set MyConn = new ADODB.Connection
MyConn.Provider = "Microsoft.Jet.OLEDB.3.51"
MyConn.Open "C:\test.mdb", "", ""
Dim adors as ADODB.Recordset
set adors = new ADODB.Recordset
adors.Open "select * from TestTable", MyConn
adors.addnew
'Your Code goes Here
'your insert statement according to ur columns in your table, your table shd atleast contain one primary key
adors.update
The Ultimate Solution Providers
Authors
Sriman & Jayaraman
Email : solutionproviders@hotmail.com
solutionproviders@yahoo.com
Hand Phone : +(6) 016 2237147 (Malaysia)
Jan Businger
August 19th, 1999, 06:33 AM
Sorry "Askus",
I picked the wrong item from the rating combo
My vote = "6"
Jan