Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

 
 
Microsoft Office Access
Search
Search
 
Check for updates: (c) Microsoft
Office downloads
 
 
 
Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

Email this linkEmail this link Printer-Friendly VersionPrinter-Friendly Version Bookmark and ShareShare
Create a form
 

There are three ways to create a form.

Based on a single table or query by using AutoForm. AutoForm creates a form that displays all fields and records in the underlying table or query (query: A question about the data stored in your tables, or a request to perform an action on the data. A query can bring together data from multiple tables to serve as the source of data for a form, report, or data access page.). If the record source (record source: The underlying source of data for a form, report, or data access page. In an Access database, it could be a table, query, or SQL statement. In an Access project, it could be a table, view, SQL statement, or stored procedure.) you select has related tables or queries, the form will also include all the fields and records from those record sources.

ShowHow?

  1. In the Database window (Database window: The window that appears when you open an Access database or an Access project. It displays shortcuts for creating new database objects and opening existing objects.), click Forms Button image under Objects.
  2. Click the New button on the Database window toolbar.
  3. In the New Form dialog box, click one of the following wizards:
    • AutoForm: Columnar   Each field appears on a separate line with a label to its left.
    • AutoForm: Tabular   The fields in each record appear on one line, with the labels displayed once at the top of the form.
    • AutoForm: Datasheet   The fields in each record appear in row-and-column format, with one record in each row and one field in each column. The field names appear at the top of each column.
    • AutoForm: PivotTable   The form opens in PivotTable view. You can add fields by dragging them from the field list to the different areas in the view.
    • AutoForm: PivotChart   The form opens in PivotChart view. You can add fields by dragging them from the field list to the different areas in the view.

    ShowIf the wizard doesn't start

  4. Click the table or query that includes the data you want to base your form on.
  5. Click OK.

Microsoft Access applies the last autoformat (autoformat: A collection of formats that determines the appearance of the controls and sections in a form or report.) you used to the form. If you haven't created a form with a wizard before or haven't used the AutoFormat command on the Format menu, it uses the Standard autoformat.

ShowTip

You can also create a columnar AutoForm based on the open record source or the record source that's selected in the Database window. Click AutoForm on the Insert menu, or click the arrow next to the New Object button on the toolbar, and then click AutoForm. If the record source you select has related tables, AutoForm adds a subform that contains the related tables displayed as datasheets (datasheet: Data from a table, form, query, view, or stored procedure that is displayed in a row-and-column format.) and subdatasheets (subdatasheet: A datasheet that is nested within another datasheet and that contains data related or joined to the first datasheet.).

Based on one or more table or query with a wizard. The wizard asks you detailed questions about the record sources, fields, layout, and format you want and creates a form based on your answers.

ShowHow?

  1. In the Database window (Database window: The window that appears when you open an Access database or an Access project. It displays shortcuts for creating new database objects and opening existing objects.), click Forms Button image under Objects.
  2. Click the New button on the Database window toolbar.
  3. In the New Form dialog box, click the wizard that you want to use. A description of the wizard appears in the left side of the dialog box.

    ShowIf the wizard doesn't start

  4. Click the name of the table or other record source that includes the data you want to base your form on.

     Note   You don't need to do this step if you selected Form Wizard or PivotTable Wizard in step 3 — you can specify the record source for the form later.

  5. Click OK.
  6. Follow the instructions in the wizard.

    If the resulting form doesn't look the way you want, you can change it in Design view (Design view: A window that shows the design of these database objects: tables, queries, forms, reports, macros, and data access pages. In Design view, you can create new database objects and modify the design of existing ones.), PivotTable view, or PivotChart view.

  Notes  

On your own in Design view. You create a basic form and customize it in Design view (Design view: A window that shows the design of these database objects: tables, queries, forms, reports, macros, and data access pages. In Design view, you can create new database objects and modify the design of existing ones.) to suit your requirements.

ShowHow?

  1. In the Database window (Database window: The window that appears when you open an Access database or an Access project. It displays shortcuts for creating new database objects and opening existing objects.), click Forms Button image under Objects.
  2. Click the New button on the Database window toolbar.
  3. In the New Form dialog box, click Design View.
  4. Click the name of the table or other record source (record source: The underlying source of data for a form, report, or data access page. In an Access database, it could be a table, query, or SQL statement. In an Access project, it could be a table, view, SQL statement, or stored procedure.) that includes the data you want to base your form on. If the form won't contain data (for example, if you want to create a form to use as a switchboard to open other forms or reports, or if you want to create a custom dialog box), don't select anything from this list.
  5. Click OK.

Microsoft Access displays the form in Design view (Design view: A window that shows the design of these database objects: tables, queries, forms, reports, macros, and data access pages. In Design view, you can create new database objects and modify the design of existing ones.).

Related Office Online discussions

Read related questions and answers from other Microsoft Office customers.