Hello, thank you for the code .. the problem, and that in this way I export the entire table in another database while I serve it to be exported only one record in another table and that the table or the database using the ID name that identifies the record