Append form Data

paulkc

Board Regular
Joined
May 18, 2007
Messages
219
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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
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,217,394
Messages
6,136,349
Members
450,005
Latest member
BigPaws

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