Results 1 to 4 of 4
  1. #1
    sdel_nevo is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    Gloucester, UK
    Posts
    402

    problems opening a for via VBA

    Hi All



    I have a form that has a sub-form on it, this sub-form is not visible when the main form opens, until data is entered into a combo box.

    this form opens correctly when opened directly from the nav bar, but when the form is opened by a button (using VBA) on it's on-click event from another form it opens but the sub-form is visible.

    if i change the button on-click event to open the form from VBA to a Macro then the form opens correctly (with the sub form not visible)

    does anyone know why this is happening, i have never come across anything like this before.

    Steve

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Any chance you could post your db with at least the three forms involved along with their tables so we can play with them? What code was being used from the button to open the other form?

  3. #3
    sdel_nevo is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    Gloucester, UK
    Posts
    402
    Hi Agian RuralGuy

    i sure can do, but im not able to do this until tuesday.

    the code to open the form is

    DoCmd.OpenForm "add bank transfer", acNormal

    the form opens but the subform "add quick payment" is visible, although when i open the form via a macro it's not.

    i will send you the required details tuesday if thats ok, could i PM you with them then.

    Steve

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Sure, I'll be around.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Opening linked paradox tables in win 7 problems with UAC
    By davedejonge in forum Import/Export Data
    Replies: 3
    Last Post: 01-29-2010, 12:36 PM
  2. Problems opening links from access
    By anguyen in forum Access
    Replies: 0
    Last Post: 09-22-2009, 06:43 AM
  3. Problems opening database
    By jdelvie in forum Programming
    Replies: 1
    Last Post: 09-20-2009, 10:11 AM
  4. Replies: 32
    Last Post: 09-16-2009, 10:06 AM
  5. Replies: 1
    Last Post: 10-15-2008, 01:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums