View Single Post
  #2  
Old February 9th, 2010, 07:26 PM posted to microsoft.public.access.forms
Daryl S[_2_]
external usenet poster
 
Posts: 881
Default Add new records into source table on Form

Frank -

You probably need some criteria in your append query to only append the
'current' record on the form. You can do this in query design by using the
build button when you are in the criteria row for the training course field.
You can test it if the form is open by switching to datasheet mode in the
query to see what would be added.
--
Daryl S


"Frank" wrote:

I created a form for training records. The data source is table
TRAINING. The form has Combo box that is
used to select employee. When the employee is selected, the employee's
data, such as employee_id,
manager, phone, training_course display in the form. This part of the
form works well.

There was new request from my client. It's requsted that when the
training_course displayed on the form is changed, the record with new
training_course can be added into source table TRAINING. So, I created
"Add" buttorn on the form and used append query method to add the
records into the TRAINING table. However, it did
not work as I expected. Using append query method, all records of the
emplyee in the source table were added into the same (the table has
dupcate records), which is not I wanted. I just want to add the new
record of the employee (the record shown on the form) to be added into
the table. I am not expert on Access. I appreciate any of the help on
the issue.

Thanks

Frank
.