Results 1 to 4 of 4

Thread: Form Problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    14

    Form Problem

    I know this is probably simple but im used to vb and i cant wuite figure out why this wont work!
    I want to unload one form and load another so i have:

    Unload Form_RentalForm
    Load Form_ClientForm

    It keeps telling me that it cant load or unload this object (hightlighting unload form_RentalForm

  2. #2
    Addicted Member
    Join Date
    Aug 2002
    Location
    Luton, UK
    Posts
    178
    1. Presumably you have spelled the form name correctly (as seen in Project Explorer window) ? No odd spaces etc.
    2. Presumably you are sure that you have Loaded the form or used .Show ? You may have a line of code that does this, but is it actually run ?
    Regards
    BrianB
    -------------------------------

  3. #3
    Junior Member Shattered's Avatar
    Join Date
    Feb 2004
    Location
    UK
    Posts
    26
    VB Code:
    1. DoCmd.Close acForm, Me.Name
    2. DoCmd.OpenForm "ClientForm"

    the alternative in access is just to use the visible property and set it to true to show, and false to hide.
    Last edited by Shattered; Feb 17th, 2004 at 03:56 AM.
    "much to learn you still have"

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    14
    That worked perfectly shattered, Thanks!!

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