PederSpendrup
New member
- Local time
- Today, 09:33
- Joined
- Jul 28, 2009
- Messages
- 4
Years ago I worked a lot with VB3 and databases,no complicated things just very simple and straigt forward.
For adding new data I used to use the below VB3 code
Dim Db As Database,T as table
Set Db = OpenDatabase(" database.mdb" )
Set T=Db.OpenTable("tablename")
T.AddNew
T ("Field name" )= Text1
:
:
T.Update
T.Close
Db.Close
Now after years of other activities I am trying to understand VB6.
Apparently a number of things have changed and I can not get this code right in VB6.
Have downloaded a lot of books and tips but it is all very confusing mixed up with errorhandlers etc.
Would appriciate any help with a simple code.
I am using VB6 and Access 2002-2003 or Access 2007
Thanks in advance
Peder
For adding new data I used to use the below VB3 code
Dim Db As Database,T as table
Set Db = OpenDatabase(" database.mdb" )
Set T=Db.OpenTable("tablename")
T.AddNew
T ("Field name" )= Text1
:
:
T.Update
T.Close
Db.Close
Now after years of other activities I am trying to understand VB6.
Apparently a number of things have changed and I can not get this code right in VB6.
Have downloaded a lot of books and tips but it is all very confusing mixed up with errorhandlers etc.
Would appriciate any help with a simple code.
I am using VB6 and Access 2002-2003 or Access 2007
Thanks in advance
Peder