Append form Data

paulkc

Board Regular
Joined
May 18, 2007
Messages
204
Office Version
  1. 365
I have a form [frm_EvaluationDetailAvg] which is displaying data from the query [qry_EvaluationDetailAvg] in a continuous form. I would like to append the data that is showing in this form to a table [tbl_AccumulatedMeritPoints] but I also want each record to include data from another form [frm_Start/End Input] which gives some criteria for the query. I have accomplished something similar to this using the following code:

<Dim sql As String
sql = "INSERT INTO EvaluationDetails ( EvaluationID, StudentID ) " & _
"SELECT " & ID.Value & " AS EvaluationID, user_id " & _
"FROM ActiveStudentList;"
CurrentDb.Execute sql
/>

I'm just not sure how to modify it for this application.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
We really need more details about qry_EvaluationDetailAvg, the table and the table where you want to append to.

It might be best if you were to post a sample database.
 
Upvote 0

Forum statistics

Threads
1,215,479
Messages
6,125,043
Members
449,206
Latest member
Healthydogs

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top