Solved

Simple VBA question: Making a subform visible using a Case select in a Module

Posted on 2004-04-03
2
324 Views
Last Modified: 2006-11-17
Hello Everyody,

I got a form called frmMain. In that form there is a subform called frmDatum_Overzicht.
The subform is set to be invisible.

When a user enters data a count is made that is used in a Case Select structure in a Module.

I want tot make the subform frmDatum_Overzicht visible if the Case is 2 of 3.
In the Case = 2 block I got the following code.

        Forms!frmDatum_Overzicht.Requery
        Forms!frmDatum_Overzicht.Visible = True

When I run the above option I get the message "access can't find the form frmDatum_Overzicht".

I think Access can't find the form because it is a subform of frmMain. But I don't know how to program
that.

Any help is welcome!

ThanX
0
Comment
Question by:Geerd
2 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 125 total points
ID: 10747239
Hello Geerd,

> Forms!frmDatum_Overzicht.Requery
>         Forms!frmDatum_Overzicht.Visible = True


Forms!frmMain!frmDatum_Overzicht.Form.requery
Forms!frmMain!frmDatum_Overzicht.visible = true


Pete
0
 
LVL 1

Author Comment

by:Geerd
ID: 10747247
ThanX Pete
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
null value 15 102
Sql Join Problem 2 43
Querying data from 3 SQL tables 2 31
Coldusion - DATA insert syntax problem 12 30
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Read about achieving the basic levels of HRIS security in the workplace.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question