Designing the About Form for an MS Access Project.
Once you complete your Microsoft Access application development process, you can design a small form called the About Form for your project. The About Form typically displays your project’s logo, name, version number, copyright information, and any other details you wish to include.
A sample About Form image of the Windows Live Writer Application is given below as an example:
Designing an Access About Form is straightforward. You will typically need:
-
Two Label controls to display the application name and the current version number.
-
A Textbox to show the copyright information.
-
An Image control (optional) to include your custom logo, giving your application a unique identity.
Designing a Simple Access About Form.
Let us design a small About Form to know what it takes to create one with a simple Logo. Our sample About Form in design view is given below for reference.
I designed a simple logo in MS Word, captured the screenshot, polished it in MS Paint, and saved it as a .bmp file.
Open your Microsoft Access Application.
Create a new Blank Form.
Set the Width Property value of the Form to 3.93"
Click on the Detail Section of the Form to select it.
Set the Height property value to 1.53".
Insert an Access Image control from the Toolbox on the left side of the Form and select the Project Logo image from your computer. Select the Image Picture Property control and click the Build (...) button to browse and select the logo image from your computer.
The Image Properties.
Change the Image property values as given below:
Picture Tiling: No
Size Mode: Zoom
Picture Alignment: Center
Picture type: Embedded
Insert a Label control to the right of the logo, aligning its top edge with the logo's top edge, and make it wide enough to display the Application name in bold text.
Write the Project Name in the Caption Property, and set the Text Font size to your liking, make it bold, and align the text to the center.
Create another Label control below the first one, with the first label's width. Write the Version number of your Project, make it bold, and center the text.
Insert a TextBox below the earlier labels, with the same width.
Copy and paste the following expression into the Control Source property of the textbox.
="Copyright " & Chr$(169) & Year(Date()) & " All Rights Reserved".Change the TextBox Property values as given below:
Border Style: Transparent
Text Align: Center
Enabled: No
Locked: Yes
Tab Stop: No
MS Access Command Button.
Create a CommandButton below the TextBox and center it.
Make the following changes to the Command Button:
Change the Name property value to cmdOK.
Change the Caption property value to OK.
Click on the Event Tab of the property sheet.
Select the On Click property and select [Event Procedure] from the drop-down list.
Click on the Build (...) button to open the VBA Module with the empty procedure start and end lines.
Copy the middle line of code given below and paste it in the middle of the Subroutine Stub. Or copy all three lines and paste them, overwriting the existing lines in the VBA Module.
Private Sub cmdOK_Click() DoCmd.Close End Sub
The CommandButton Click closes the About Form.
- Open the About Form in Normal View and see how it looks on the Access Application Window.
The Property Value Changes.
As you can see, the Access About Form needs changes to look like a real About Form. Let us do that to give it the final touches.
Make the following changes in the Form's Property Values as shown below:
Caption: About <your Project name here>
Pop Up: Yes
Modal: Yes
Default View: Form View
Allow Form View: Yes
Auto Center: Yes
Auto Resize: Yes
Fit to Screen: No
Border Style: Dialog
Record Selectors: No
Navigation Buttons: No
Dividing Lines: No
Scroll Bars: Neither
Control Box: Yes
Close Button: No
Min Max Button: None
Save the Form after the above changes.
View The Application About Form in Normal View.
- Open the About form in Normal View.
A sample Image of the completed About Form in Normal View is given below.
MS Access Label & Text Controls.
Save the Form and rename it as About or frmAbout.
Add an option to the Project's Customized Menu to enable the user to open the Access Application About Form. Alternatively, you may add a Command Button on the Main Form of your Project to do that.












No comments:
Post a Comment
Comments subject to moderation before publishing.