Hello,
Using a macro in this situation would need to be specifically written for your situation. The practical solution is simply a SQL statement. This requires an Insert statement so cannot be done in Query section but rather from menu Tools->SQL...
.
The actual statement depends on the from and to fields and db being used. For most situations here is the format:
INSERT INTO "Your Receiving Table Name" (List of fields to be inserted) SELECT `List of fields selected for insertion` FROM "Table selected from" WHERE "Field name for selection" = `Value to be selected`
Because there is no provided information, consider that you must insure a unique key must be maintained. This may be handled by an auto increment field or it can be a fixed value in the select statement.
For more information on the Insert
statement please refer to the documentation of the database you are using.
NOTE: You do not “paste” records into a query!