You can use the VBA Docmd.RunSQL command. Basically it is the same as running an append query. To get the SQL for it you could put together an append query and copy the SQL. I put together an an example that I ran. I made a table called AppendingFromCode. It has three fields. Name1, Address1, Amount1. Below is the code that I used to append amounts to the table. I used input boxes to get the values. You can modify as needed.
Public Function Appending()
Dim strName As String
Dim strAddress As String
Dim dolAmount As Currency
strName = InputBox("Name"

strAddress = InputBox("Address"

dolAmount = InputBox("Amount"
DoCmd.RunSQL "INSERT INTO AppendingFromCode " _
& "( Name1, Address1, Amount1 ) " _
& "SELECT '" & strName & "' AS Expr1, '" _
& strAddress & "' AS Expr2, " _
& dolAmount & " AS Expr3;"
End Function
Good luck... B-)
ljprodev@yahoo.com
ProDev
MS Access Applications