I’ve been wrestling for a full day now trying to copy all data (except primary key pKey) from CasesListboxColumn = 4 data (see database pic below) to CasesListboxColumn = 2 data (present, but not shown in the image below). I’ve tried a bunch of INSERT TO variations but without any luck. On a few of them, I got a SQL error, while the others ran without error but without any data transfer.
I’m no Obi Wan, but I’m willing to (try to) help! Are you saying you are SELECTing all the data from this table WHERE ‘CasesListboxColumn = 2’, and wanting to insert those found records into another table of similar design?
I’m afraid I’m still unclear. Do you mean you want to duplicate the records that currently have CasesListboxRows = 4 to new records with all the same data except a new id and with CasesListboxRows = 2?
OK, here’s what I used for code (I don’t see the code blocks in the response box … what am I missing?) Unfortunately the code as shown below didn’t copy anything …
As CasesListboxRow is the first of the Insert and 2 is the first of Select, it will put 2 on the copied records that the select searches for 4. Hope this makes sense.