Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Access 2013
David S 
    
13 years ago
I use Access 2013 and my colleague uses Access 2010.
During the Beta test of Access 2013 we had no problems, but now I have moved to 2013, he cannot open the database.
I am waiting for him to tell me what error messages he gets, but it seems the problem lies in a module, or rather a function used to maximise the screen.
The module is:
Option Compare Database
Option Explicit

Declare Function ShowWindow& Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long)

Function MaximizeAccess() As Boolean
On Error GoTo MaximizeAccess_Error

   MaximizeAccess = False
   Dim x As Long
   Const SW_SHOWMAXIMIZED = 3

   x = ShowWindow&(hWndAccessApp, SW_SHOWMAXIMIZED)

   MaximizeAccess = True
  
MaximizeAccess_Exit:
   On Error Resume Next
   DBEngine.Idle dbFreeLocks
   DBEngine.Idle dbRefreshCache
   Exit Function
      
MaximizeAccess_Error:
      Dim DisplayMessage As String
      DisplayMessage = Nz(Choose(Application.CurrentObjectType, "Query", "Form", "Report", "Macro", "Module"), "Host")
      DisplayMessage = DisplayMessage & vbTab & ": " & Application.CurrentObjectName & vbNewLine
      DisplayMessage = DisplayMessage & "Event" & vbTab & ": MaximizeAccess" & vbNewLine
      DisplayMessage = DisplayMessage & "Error" & vbTab & ": " & Err & vbNewLine
      DisplayMessage = DisplayMessage & "Text" & vbTab & ": " & Error$ & vbNewLine
      DisplayMessage = DisplayMessage & vbNewLine & "If this error persists please note down these details together with what you were trying to do and call for technical assistance."
      MsgBox DisplayMessage, vbCritical + vbOKOnly, "An error has occured in "
      MaximizeAccess = False
      Resume MaximizeAccess_Exit
      
End Function
Any idea how I can circumvent this problem?  We do not need to maximise the screen so we need not call the function, but I cannot find from where it is called to take it out.
Any help would be greatly appreciated.
David

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/18/2026 12:42:33 PM. PLT: 1s