S
Steve
I have an Access DB and it is frustrating that when there are multiple forms
open, there is not an easy way of having a selection list which allows the
user to choose which form they want to view (bring to front/on top/etc). I
looked on the web for some code to create/manage this, but I couldn't find
anything.
So I am creating my own code.
I have successfully made it work. When a user opens a form, it adds the
form to a temporary table for the user's session. When a form is closed, it
removes that record from the table. The table is displayed as a pop-up form
on the left of the screen. When a user selects the NAME of the screen they
want to see (i.e. set focus and effectively bring to the front), I am having
trouble passing the form name (stored as text) to the VB commad which will
set the focus to that form.
For example:
Customers
Transactions
Accounts
When the user clicks on the text "customers", there is a hidden control
which has the form name "sfrm_customers" and I am trying to pass this form
name to do the following:
Forms![FORMNAME].setfocus 'FORMNAME should be replaced with sfrm_customers
in teh example above
Since "sfrm_customers" is stored as TEXT, I am not sure how to pass that
information so that it can be intrepreted as a FORM.
The alternative is that I have a module with Hard-codes form names. This
seems like an archaic method.
Am I making this harder than it should be? Help?
-Stephen
open, there is not an easy way of having a selection list which allows the
user to choose which form they want to view (bring to front/on top/etc). I
looked on the web for some code to create/manage this, but I couldn't find
anything.
So I am creating my own code.
I have successfully made it work. When a user opens a form, it adds the
form to a temporary table for the user's session. When a form is closed, it
removes that record from the table. The table is displayed as a pop-up form
on the left of the screen. When a user selects the NAME of the screen they
want to see (i.e. set focus and effectively bring to the front), I am having
trouble passing the form name (stored as text) to the VB commad which will
set the focus to that form.
For example:
Customers
Transactions
Accounts
When the user clicks on the text "customers", there is a hidden control
which has the form name "sfrm_customers" and I am trying to pass this form
name to do the following:
Forms![FORMNAME].setfocus 'FORMNAME should be replaced with sfrm_customers
in teh example above
Since "sfrm_customers" is stored as TEXT, I am not sure how to pass that
information so that it can be intrepreted as a FORM.
The alternative is that I have a module with Hard-codes form names. This
seems like an archaic method.
Am I making this harder than it should be? Help?
-Stephen