[FONT="]I first want to copy a table and then to amend it. This is the code.[/FONT]
However, when running it, in the copied table the field [Product Active] is also changed to “False”. How can I prevent this? Is the first code line not ended before starting the new and how do I prevent this?
Code:
[FONT="]DoCmd.CopyObject , "tblLijstProducten_Kopie_" & Now(), acTable, "tblLijstProducten"[/FONT]
[FONT="] [/FONT]
[FONT="] sqlUpdate = "UPDATE tblLijstProducten SET tblLijstProducten.ProductActief = False;"[/FONT]
[FONT="] DoCmd.RunSQL sqlUpdate[/FONT]
However, when running it, in the copied table the field [Product Active] is also changed to “False”. How can I prevent this? Is the first code line not ended before starting the new and how do I prevent this?