Yes I have a table for appointments and my students will be scheduled many
times for the same appointment.
What is the syntax to do this?
Well, the exact syntax depends on the structure of your tables, which
I don't know. Basically you would create an Append query based on the
table that you want to copy records to, selecting the fields that you
want to copy (or entering constants such as an appointment date), and
choosing the target table to which you wish to append the records. The
query can be executed using a variety of methods - the most effective
is probably the Querydef Execute method in VBA.
I'm still perplexed at the thought of EVERY SINGLE STUDENT being
scheduled for (apparently) EVERY SINGLE APPOINTMENT. Am I
misunderstanding your structure? Or is this appointments table really
necessary (since you could get a recordset with every student paired
with every appointment using a Cartesian join query)?