The following code does work for updating the current table, however I want to update another table.
I have tried changing "CurrentDB" to the Alternative table name but with no joy!
simply put, i want: "currentDB" to point an another table in the same access project.
'Updating a record in a table
Dim DB As Object
Dim Column As Object
Set DB = CurrentDb 'name of database
Set Column = DB.OpenRecordset("User") 'select column from the above database
Column.AddNew 'add a new item to database
Column("User").Value = User1
Column.Update 'Update the table!
Thank you
/Nice
I have tried changing "CurrentDB" to the Alternative table name but with no joy!
simply put, i want: "currentDB" to point an another table in the same access project.
'Updating a record in a table
Dim DB As Object
Dim Column As Object
Set DB = CurrentDb 'name of database
Set Column = DB.OpenRecordset("User") 'select column from the above database
Column.AddNew 'add a new item to database
Column("User").Value = User1
Column.Update 'Update the table!
Thank you
/Nice