Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,977
    I cannot replicate your issue.

    If you want to provide db for analysis, follow instructions a bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  2. #17
    Lukael is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    239
    No need, I found out what causes error, kind of...

    If I rename DB It works. Or If I use On Error Resume Next handle too.

    But this code has some issues. As I created a sample to post, error has accured too, but when I renamed DB, It stopped ?!?

  3. #18
    Lukael is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    239
    Sorry, I created another sample, error again, this time I haven't change name of DB. Check It out.

    DB opens in Form1, click on "Open form", then double-click on "FieldZoom". Error should appear.
    Attached Files Attached Files

  4. #19
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,977
    OpenArgs is not liking when the ZoomField is Null.

    DoCmd.OpenForm "Form3", , , , , acDialog, Nz(Me.ZoomField)

    You should disable the X close on the zoom form.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #20
    Lukael is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    239
    Thanks a lot, that solved the problem ! I wouldn't come across this one, never even heard about Nz function in VBA

    You should disable the X close on the zoom form.
    Yes I figured out that error too, and I already removed X button, so I didn't post anything about this issue.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Creating Custom RibbonUI
    By lzook88 in forum Programming
    Replies: 2
    Last Post: 11-07-2015, 09:52 AM
  2. Creating a custom task schedule
    By azdjedi in forum Programming
    Replies: 4
    Last Post: 04-14-2014, 12:48 PM
  3. Creating Custom Fields
    By RudeRam in forum Queries
    Replies: 3
    Last Post: 08-01-2011, 01:09 PM
  4. creating custom switchboard
    By cnstarz in forum Forms
    Replies: 0
    Last Post: 05-25-2011, 12:18 AM
  5. Creating Custom Ribbons
    By disco_stu in forum Access
    Replies: 1
    Last Post: 07-13-2010, 06:10 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