Hey Avaughan,
Sounds like you have it working the way you want with a macro. If that's true then you can go to design view of the form that contains your subforms and macro then click on Tools/Macros/Covert Forms Macros to Visual Basic. Access would then convert your macro that's working into code for you.
HTH
Shane