Hi,
I have a access database called "db1". in this database, theres a table called "database"
this table has to columns, one called ID, and another one called Name
I want to append a new id and name under the last entry in this database using vb6. heres what I tryed:
but that doesnt work :-(
what am I doing wrong?
I have a access database called "db1". in this database, theres a table called "database"
this table has to columns, one called ID, and another one called Name
I want to append a new id and name under the last entry in this database using vb6. heres what I tryed:
Code:
Set DB = DBEngine.Workspaces(0).OpenDatabase("D:\db1.mdb")
Set rs = DB.OpenRecordset("database")
rs.execute "INSERT INTO database(ID, Name) VALUES (2, Vanessa)"
but that doesnt work :-(
what am I doing wrong?