what i want to do is to declare the code in a module
instead on the form load
but i don't the correct syntax
i've started like this
###############################
public db1 as ADODB.Connection public rs1 as ADODB.Recordset
#################################
i want the path also to be declared in the module
db1.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\DSN Less Conn sample\library.mdb"
################################################################
on form load
********************
Set db1 = New ADODB.Connection 'open database db1.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\DSN Less Conn sample\library.mdb" Set rs1 = New ADODB.Recordset 'open table rs1.Open "SELECT * FROM book", db1, adOpenKeyset, adLockPessimistic#################################################
can anybody tell me where can i get a tutorial on how to use sql
waht i mean by that is the different syntax like "select from, Insert into" in vb 6.0
Edited by TcM, 29 March 2008 - 05:28 AM.
CODE TAGS!!!!!!!


Sign In
Create Account

Back to top









