R raychoy2k Registered User. Local time Today, 15:59 Joined Feb 24, 2003 Messages 29 Apr 8, 2003 #1 Hello, I was wondering how do I add a new record to a table and fill in the field values in VBA? Any help would be greatly appreciated.
Hello, I was wondering how do I add a new record to a table and fill in the field values in VBA? Any help would be greatly appreciated.
P Peter D Registered User. Local time Today, 22:59 Joined Sep 7, 2000 Messages 188 Apr 8, 2003 #2 Here's an example from Access help, slightly modified: Dim dbs As Database Set dbs = CurrentDB() dbs.Execute " INSERT INTO Employees " _ & "(FirstName,LastName, Title) VALUES " _ & "('Harry', 'Washington', 'Trainee');" dbs.Close Hope this helps,
Here's an example from Access help, slightly modified: Dim dbs As Database Set dbs = CurrentDB() dbs.Execute " INSERT INTO Employees " _ & "(FirstName,LastName, Title) VALUES " _ & "('Harry', 'Washington', 'Trainee');" dbs.Close Hope this helps,