Microsoft Access
  Home arrow Microsoft Access arrow Page 2 - Getting to Know Microsoft Access, Part 7: ...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MICROSOFT ACCESS

Getting to Know Microsoft Access, Part 7: Forms
By: Sage Adams
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 20
    2005-01-19

    Table of Contents:
  • Getting to Know Microsoft Access, Part 7: Forms
  • Creating Your First Form
  • The Form Wizard
  • Customizing Your Form

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Getting to Know Microsoft Access, Part 7: Forms - Creating Your First Form


    (Page 2 of 4 )

     

    Go ahead and create your first form now so you can see what the form design window looks like. Select Design View and choose a record source on which to base your form. When you’re done you’ll see the form design window as shown below:

    Getting to Know Access: Forms

    Access gives you the tools you need to design your form, including a design toolbar, a formatting toolbar, a toolbox, property sheets, fields lists, and alignment tools. The formatting toolbar is used to customize element appearances and the toolbox shows the available controls. Use the field list to drag fields from your record source to the design. Add controls to the design by clicking a control button in the toolbox and drawing in the design with your mouse. Create calculated controls by combining record source values in specific ways. For instance, suppose you have a record source from a costs database. You could create a calculated control by inputting values into a control by double-clicking a control, thus opening the properties dialog, and entering the calculated field into the control source property. You would then use an expression similar perhaps to one of the following:

    [Price]*[Sales Tax]

    Or

    [Cost of Item]*1.09+[Shipping & Handling]

    You can add symbols, such as the currency symbol, to the calculated field by setting the format property in the properties dialog. Choose the Currency option in the drop-down list in the Format property box. While you’re there notice the name of the unbound control you’ve created; it can be changed to suit your needs. That name is what Access uses to reference the control in macros, expressions, and procedures.

    Tip 1: Assign the current date to a field by typing the following in the control’s Default Value property:

    =Date()

    Tip 2: Add a validation rule to a control in a form by entering the appropriate validation expression in the Validation Rule property.

    Conditional formatting is another useful feature. It allows you to manipulate what certain controls look like under specified conditions. To use this feature just select the control you want to change, choose the Format | Conditional Formatting menu option and make your selections in the dialog box. You can set up to three conditions for changing a control’s text or background color, or text formatting such as bold, italic, or underline. You can set the following conditions:

    • Set the "Field Value is" condition to specify a value or range of values to which to apply formatting,
    • Set the "Expression Is" condition to specify what happens when an expression you enter is true, and;
    • Set the "Field has Focus" condition to make changes to a field that has current focus.

    You can change the style of a form by opening the form in design view and choosing the form selector (upper-left corner), and then choosing the Format | AutoFormat menu option. Click the Options button to customize the properties of the design. This is a handy feature, especially if, like me, you are not satisfied with the design options Access gives you.

    More Microsoft Access Articles
    More By Sage Adams


     

    MICROSOFT ACCESS ARTICLES

    - Linking SQL Express 2005 Tables to MS Access...
    - Working with Access Projects in Access 2007
    - Exploring Access 2007
    - Working with Stored Procedures in an MS Acce...
    - Creating and Using Action Queries
    - Creating Data Access Pages with Charts using...
    - Advanced Ideas using VBA
    - VBA Details
    - Updating Records in MS Access
    - Using ADO`s Record Object with URLs
    - Exporting XML from MS Access 2003
    - Importing XML into MS Access 2003
    - On Using Pass-through Queries in MS Access
    - Distributed Queries in MS Access
    - Configuring a Linked Microsoft Access Server...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT