How could i do a connection between the form and table, using DSN-less?
I had try something like this:
Sub DB_Connect()
Dim DataConn
Set DataConn = server.CreateObject("ADODB.Connection"
Dim db
db = "C:\Documents and Settings\HoRiZoN\Desktop\Eleave_convert.mdb"
DataConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source =" & db
DataConn.Open
End Sub
But it dun seem to work! Also, i will like to do an inserting of a row to the table, wat wil the coding be like?
I had try something like this:
Sub DB_Connect()
Dim DataConn
Set DataConn = server.CreateObject("ADODB.Connection"
Dim db
db = "C:\Documents and Settings\HoRiZoN\Desktop\Eleave_convert.mdb"
DataConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source =" & db
DataConn.Open
End Sub
But it dun seem to work! Also, i will like to do an inserting of a row to the table, wat wil the coding be like?