answersLogoWhite

0


Best Answer

You can create a table in Microsoft Access in two ways.

Creating a table using the Access interface

In Microsoft Access, go to the Create tab at the top of the screen. You will see the "ribbon" change. ( The ribbon is the horizontal bar with all the buttons at the top of the screen). On the ribbon you now have a Table button. If you press this a new table is created. Your new table will appear in the list on the left of your screen and have a default name of "Table1". You can change this name when you save your new table.

The next step would be to add fields to your table. This is best done in design view. In order to access design view, right click the name of your table in the list on the left and choose Design view from the menu that appears.

In design view, you can add fields and decide what data type (text, number, date, etc) they should have. Also, you can set field properties like input masks and validation rules at the bottom of the screen.

Creating a table using SQL

You can also create a table using the Structured Query Language (SQL)., but it is more complicated. SQL is a language that was developed to interact with databases.

The following example script uses the CREATE statement to create a contacts table.

CREATE TABLE contacts

(

contact_id int,

firestname varchar(255),

lastname varchar(255),

address varchar(255),

city varchar(255),

CONSTRAINT pk_contactid PRIMARY KEY (contact_id)

)

In order to run this query and create the table, once again go to the create tab.

  • On the ribbon of the create tab, choose Query Design.
  • The window show table will be shown. Close this window.
  • Now, on the left most part of the ribbon, click the SQL View button and select SQL View from the options that appear.
  • Now the main window changes into a editable area where you can copy your query into. Copy/paste the query I typed above into this area.
  • Now, in order to save the query press the key combination CTRL + S. This will bring up the Save as dialog box asking you to name your table. Name your table and press OK in the Save as dialog box.
  • Now, your query will appear in the list on the left side of the screen. Select it and press the Run button (the one with the large, red exlamation mark) on the ribbon.
  • Now your table will be created and will appear in the list on the left.
User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago
  1. Click where you want to create a table.
  2. Click Insert Table on the Standard toolbar.
  3. Drag to select the number of rows and columns you want.
This answer is:
User Avatar

User Avatar

Wiki User

12y ago

create table table name(id in,name varchar (20),city varchar(20))

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you you create table in M.S. Access?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What you can use inbuilt feature in MS Access to create tables?

You can use the Create Table Wizard, a Make Table Query or a Data Definition Query as ways that are built into Access to create tables.


What can you do with the ms access?

with ms access we can create tables, queries, forms, reports, pages, macros and modules which are the objects of ms access.


How does ms access database save the data after inserting data into the table?

i want to get some logical arguments about to save the data after inserting data into the table in the ms access i want to get some logical arguments about to save the data after inserting data into the table in the ms access


How to publish MS access database on web?

Make MS Access database as a datasource to a table to display the contents in a web page.


What is a MS Access table?

A table in any database is where the data of certai types is stored. I.e. Address table


What are the two methods of designing a table in MS Access?

Use the table wizard or design view.


When you create a new database which object is created first?

In Access, when you create a new database, a table is created first.


In access Which button do you use to create a table in design view?

table design


Up to how many databases can be made in ms access 2007?

You can make as many as you want, there is no license restriction with how many databases you can create with MS Access 2007.


What contains data about a specific topic or subject holds records in MS Access?

A table.


How do you choose when to use Excel and Access?

Microsoft Excel is a table processor. That means that it is used to create tables for example for accounting purposes, spreadsheets or just simple statistics and graphs. MS Access is a database program. That means that for example if you are doing a survey, you create a database where you input all the answers.


What view in ms access allow more control over table structure?

design view