Append form Data

paulkc

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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

HiTechCoach

Well-known Member
Joined
Aug 29, 2010
Messages
1,008
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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,777
Messages
5,833,643
Members
430,221
Latest member
jmmccormick

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
Top