Thanks you guys, still stuck on one bit though. I want the form to load with the current month and year in the text box. How do I get that to display and still use the commanf buttons to change the month as I can either get one or the others to work
where the subformcontrolname is the name of the control on the main form which houses the subform, not the subform itself. Unless the subformcontrolname and the subform are named the same and then you can use the subform name. The .Form. part stays in so Access knows you want something on the subform and not the subformcontrol.
You used a mothod of the DCmd object to carry out an action in Visual Basic, but then clicked Cancel in a dialog box, For example, you used the Close mehtod to close a changed for, then clicked cancel...............
What it is doing is it can't find either the field you set in the code (so perhaps you should post what you actually used) or the other form was not left open so it could get the value.