The output of this line is supposed to be your SQL statement


Debug.Print DataEnvironment1.Commands.Item(1).CommandText