Article ID: 148395 - Last Review: January 19, 2007 - Revision: 3.3 ACC: How to Determine the Current Screen Resolution (95/97)This article was previously published under Q148395 SUMMARY
Advanced: Requires expert coding, interoperability, and multi-user skills.
This article shows you how to create a sample user-defined Visual Basic for Applications function to determine the current screen resolution. You can use this function to determine if you are running in standard VGA mode (640 x 480) or Super VGA mode (800 x 600 or 1024 x 768). This article assumes that you are familiar with Visual Basic for Applications and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information about Visual Basic for Applications, please refer to your version of the "Building Applications with Microsoft Access" manual. MORE INFORMATION
The following example demonstrates how to create and use the sample
GetScreenResolution() function.
NOTE: You may have some Microsoft Windows API functions defined in an existing Microsoft Access library; therefore, your declarations may be duplicates. If you receive a duplicate procedure name error message, remove or comment out the declarations statement in your code.
REFERENCES
For more information about how to determine the current screen resolution
in Microsoft Access 2.0, please see the following article in the Microsoft
Knowledge Base:
113458
(http://support.microsoft.com/kb/113458/EN-US/
)
How to Determine the Current Screen Resolution (2.0)
For more information about API Calls, please see the following article
in the Microsoft Knowledge Base:
147781
(http://support.microsoft.com/kb/147781/EN-US/
)
How to Convert API Calls from 16-bit to 32-bit.
| Article Translations
|


Back to the top
