N
NewsGroups
I am starting to get up to speed on VB NET, but I seem to keep having
trouble with one or two areas.
The latest one is reading databases (Access/SQL Server).
In the past I have set up connections with :-
Dim dbDatabase As Connection
Dim rsNames As Recordset
Set dbDatabase = New Connection
Set rsNames = New Recordset
sConnection = "Provider=Microsoft.Jet.OLEDB.4.0;"
sConnection = sConnection & "Persist Security Info=False;"
sConnection = sConnection & "Data Source=" & App.Path & "\names.mdb"
dbDatabase.ConnectionString = sConnection
dbDatabase.Open
rsNames.CursorType = adOpenKeyset
rsNames.LockType = adLockOptimistic
rsNames.Open "select * from Names", dbDatabase
Then I have Buttons with Find.Next, Prior, Last, First, to allow the users
to navigate the database
I cant seem to find similar in .Net
Any Advice/help please
Thanks
Derrick
trouble with one or two areas.
The latest one is reading databases (Access/SQL Server).
In the past I have set up connections with :-
Dim dbDatabase As Connection
Dim rsNames As Recordset
Set dbDatabase = New Connection
Set rsNames = New Recordset
sConnection = "Provider=Microsoft.Jet.OLEDB.4.0;"
sConnection = sConnection & "Persist Security Info=False;"
sConnection = sConnection & "Data Source=" & App.Path & "\names.mdb"
dbDatabase.ConnectionString = sConnection
dbDatabase.Open
rsNames.CursorType = adOpenKeyset
rsNames.LockType = adLockOptimistic
rsNames.Open "select * from Names", dbDatabase
Then I have Buttons with Find.Next, Prior, Last, First, to allow the users
to navigate the database
I cant seem to find similar in .Net
Any Advice/help please
Thanks
Derrick