I am trying to do such a simple (and devilishly frustrating) task.
I want to hide fields on a subform when the main form opens. Once a value is chosen from a combo box in the main form, the corresponding subform values will become visible.
I've read a lot on the subject and most folks say to create a "dummy" field or button on the form and set the focus on that object. I've tried that with a button named Command58 but I get the "can't go to specified record" when I open the form. Here's my code:
I would appreciate any help you might be able to give me. I know this is novice stuff for you but it's making me feel awfully stupid right now!
I want to hide fields on a subform when the main form opens. Once a value is chosen from a combo box in the main form, the corresponding subform values will become visible.
I've read a lot on the subject and most folks say to create a "dummy" field or button on the form and set the focus on that object. I've tried that with a button named Command58 but I get the "can't go to specified record" when I open the form. Here's my code:
Code:
Private Sub Form_Load() Call JBModule.VisOff1 End Sub 'located in the JBModule Public Sub VisOff1() Forms!SelectJob.BidResults.Form!Command58.SetFocus Forms!SelectJob.BidResults.Form!EmplID.Visible = False End Sub
Comment