Hello
I am trying to refer in code to the RecordsetClone of a subform datasheet
but I'm getting syntax errors.
This is what I am writing:
Set MyDB = DBEngine.Workspaces(0).Databases(0)
MySQL = "SELECT Sum([Qty]*[Cost]) AS Expr1 FROM
Forms!Form1!Child0.Form.RecordsetClone;"
Set MySet = MyDB.OpenRecordset (MySQL, DB_OPEN_DYNASET)
Me!SumTextBox = MySet!Expr1
MySet.Cose
The errors ar caused be the way I am refering to
Forms!Form1!Child0.Form.RecordsetClone in setting MySQL
How should I write the code so MySQL can look at the records in the
Forms!Form1!Child0 datasheet and calcluate the sum of the [Qty]*[Cost]
I am using Access 2000
Thanks
G.Gerard