I am using moduled to open forms. I run them from a menu that I have
created on the toolbar. The source of the forms are queries all with
record source to "lstpreintervie w" on a form named eforms.
Public Function Openmyform()
If IsNull(Forms!ef orms!lstPreInte rview) Then
MsgBox "Sorry. You need to select a record!"
Exit Function
Else
'If the record has been selected, well then it can open the macro
Openemyform
If Not IsNull(Forms!ef orms!lstPreInte rview) Then
DoCmd.OpenForm ("Myform")
End If
End If
End Function
I would like to be able to scroll from one form to the other so that
users just select the required form and can open it. What happens, is
that when a form is opened, the active one should close or I can have
up to 20 forms opened at the same time. Is there a way I can do this
withouth having to provide the form name? And where should I place the
code?
Thanks.
created on the toolbar. The source of the forms are queries all with
record source to "lstpreintervie w" on a form named eforms.
Public Function Openmyform()
If IsNull(Forms!ef orms!lstPreInte rview) Then
MsgBox "Sorry. You need to select a record!"
Exit Function
Else
'If the record has been selected, well then it can open the macro
Openemyform
If Not IsNull(Forms!ef orms!lstPreInte rview) Then
DoCmd.OpenForm ("Myform")
End If
End If
End Function
I would like to be able to scroll from one form to the other so that
users just select the required form and can open it. What happens, is
that when a form is opened, the active one should close or I can have
up to 20 forms opened at the same time. Is there a way I can do this
withouth having to provide the form name? And where should I place the
code?
Thanks.
Comment