Thank for sharing!
Will this code works well when using databases managed by SQL Server 2000?
My case is:
I got a main form and a subform in which the field CustomerID (data source: table Customer) on the main form populate subform contains following fields: Invoice No., Date, Description...