Paul,

I don't have a good example with me, but I believe you will just need to set the datasource and datamember through code.

Code:
Private Sub Command1_Click()
    Set Datagrid1.DataSource=name of your dataenvironment
    Datagrid1.DataMember="name of the recordset"
End Sub
The DataEnvironment name will not have double-quotes around it. The DataMember name will need double-quotes.


[Edited by jbart on 11-16-2000 at 06:52 PM]