Can't give you specifics since I don't know your database structure.
The code for the click event of the button would look SOMETHING like the
UNTESTED AIRCODE below
Dim dbAny as DAO.Database
Dim strSQL as String
StrSQL = "INSERT INTO Tablename ( [TextFieldA], [NumberFieldB] ) " & _
" VALUES( """ & Me.txtControlA & """, " & _
me.txtNumberControl & ")"
Debug.print StrSQL
STOP
Set dbAny = CurrentDb
dbany.execute strSQL, dbFailonError
But the question is still why are you doing this. If you have the values
through a relation to another table, you should only be storing the value to the
keyfield in that other table - probably in the table that you are using as the
source of the form.
T said:
Most of the controls are bound to a query's fields, but there are a few text
boxes that the user inputs some infomation into manually that needs to be
appended as well.
The user chooses a job # and then the info for that job comes up from the
query. The user then fills in the text boxes with the appropriate info and
then I want them to click on a button to append the data to an existing
table.
Thanks!!
If
so, you code
to do so. an
append