Does anyone know the coding to use behind a toggle button on a Main form, in which the user can toggle between making the subform visible and unvisible? Thanks.
Sure, there are a few ways to do it. Here's a simple way. Let's say you have two forms, frmMain and frmSub. On frmMain, you have a command button, cmdToggleSub. Here's the code that you put in cmdToggleSub's click event handler:
Sub cmdToggleSub_Click()
frmSub.Visible = Not frmSub.Visible
End Sub
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'If we're supposed to work in Hex, why have we only got A fingers?'
Not really - the term subform has a special meaning in Access
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'If we're supposed to work in Hex, why have we only got A fingers?'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.