ACC2000: Make-Table Query Does Not Copy All Table Properties

ID: Q209225


The information in this article applies to:


Moderate: Requires basic macro, coding, and interoperability skills.

This article applies only to a Microsoft Access database (.mdb).


SYMPTOMS

When you run a make-table query to create a new table, the table does not inherit all the properties from the table on which the query is based.


CAUSE

When you run a make-table query, the new table inherits only the Data Type and FieldSize property of each field in the query's underlying table, but not the other field or table properties.


RESOLUTION

To create a table that has the same properties as another table, use the Copy and Paste commands.

To use the Copy and Paste commands, follow these steps:

  1. In the Database window, select the table that you want to copy.


  2. On the Edit menu, click Copy.


  3. On the Edit menu, click Paste.


  4. In the Table Name box, type a name for the new table.


  5. Under Paste Options, select either the Structure Only or the Structure And Data option, and then click OK.



MORE INFORMATION

Steps to Reproduce Behavior

  1. Open the sample database Northwind.mdb, and create the following query based on the Categories table:


  2. 
       Query: Copy Category Table
       --------------------------
       Type: Select
       Field: CategoryID
       Field: CategoryName
       Field: Description
       Field: Picture 
  3. On the Query menu, click Make Table Query, and then in the Table Name box, type Categories (MkTbl). Click OK.


  4. Save the query as Copy Category Table.


  5. Run the Copy Category Table query.


  6. View the Categories table in Design view. Note that fields have text specified for their Description property and have values specified for other field properties.


  7. View the Categories (MkTbl) table in Design view. Note that the text specified for the Description property and the values specified for other field properties in the Categories table were not inherited by this table.



REFERENCES

For more information about make-table queries, click Microsoft Access Help on the Help menu, type "create a new table from the results of a query with a make-table query" in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

Additional query words: maketable prb


Keywords          : kbusage kbdta QryMktbl 
Version           : WINDOWS:2000
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: May 13, 1999