My question is identical to the one in How can SQL create duplicate records?. However, I’m trying to do it in Access, and none of the solutions there appear to be applicable. Preferably, I’d like a single SQL statement.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The accepted answer from that linked question can be adapted for Access. Create your
numtable from the user interface. If you want to create the table with a DDL statement, use this.Load the
numtable. In Access, a VBA procedure would be convenient.With your
numtable prepared and your other table named tableX, use this SQL statement to return a row set with duplicated rows.The only real difference in that
SELECTstatement vs. the one suggested by @ypercube in the accepted answer to that other question isINNER JOINinstead of justJOIN. Access’ db engine won’t acceptJOINalone; you must specify the join type (inner, left, or right).