Results 1 to 2 of 2

Thread: load/display form from a form

  1. #1

    Thread Starter
    Frenzied Member vbdotnetboy's Avatar
    Join Date
    Jun 2004
    Location
    Lewisburg, PA "Next year Raiders in the Super Bowl"
    Posts
    1,310

    Question load/display form from a form

    can you do something like the following code in access

    VB Code:
    1. Private Sub Form_Load()
    2.    Dim xFrm As New frmExample
    3.  
    4.  
    5.    xFrm.Show vbModal
    6.  
    7.    'AllowAccess is a property
    8.    If Not xFrm.AllowAccess Then End
    9. End Sub


    can something like this be done in MS Access?!?!?!!?
    because i can get anything to work the way i want it to. I was hoping that it would work like regular VB...but i guess i'm wishing for to much.

    Derek - Using VS 2008 99% of the time and VS 2003 1% of the time

    Please Help Us To Save Ana

    ● Helpful Links: DNR TV | Awesome site for tips | Using ADO.NET to work with Excel | Xml Namespace 2.0 Framework Changes|Ultra High Security Password Generator | Mendhak's ADO.NET Tutorial
    ● Code Bank: Random Password Generator | Generic DbProviderFactory Access
    ● Site Work: Bottle Run Xtreme | Spaids Racing.com

    Company I work for - CSSI

    WHEN POSTING PLEASE INDICATE VERSION

    Please use vbcode tags or code tags when posting code
    [highlight=vb]ALL your code goes here[/highlight] or [code]ALL your code goes here[/code]

    If my post helped you in anyway... please be kind and give me some ratings

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    No

    xFrm.Show vbModal <<--- the code wiill wait here until the calling form is closed or made invisible.. unless you have code in there which checks the access rights - in which case why bother opening the form, just call the checks before?


    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width