Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make table Set Default Text Size in Query 1

Status
Not open for further replies.
Jul 14, 2006
2
GB
I am trying to create a table from a query and need to set the default size in column one to Text 20. How can i do this in the query
 
If its a MAKE TABLE query then the field size will be the same as the corresponding field size in the source table OR the Access-defined default field size from "Tools / Options / Tables/Queries / Default Field Sizes". If the query is a CREATE TABLE query then
Code:
CREATE TABLE myTable
(myTextField Text (20), etc.
You can also change it after you create the table with
Code:
ALTER TABLE myTable ALTER COLUMN myTextField Char(20)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top