Hi Folks
I have created a command object in the data environment which calls a stored procedure in sql server.
I want to be able to assign a paramter for the command object in code at run time.
I cant seem to be able to reference the command object via the likes of

DataEnvironment1.reportquery.parameters(1).Value = datprimaryrs.recordset!palletid

In fact I cant seem to reference it at all.
Does anyone know how to "get at" a data environment designed command objects properties from code

Cheers

All help is gladly recieved and most appreciated