Solved

I want to add a column in Orders databasen

Posted on 2009-05-04
13
238 Views
Last Modified: 2012-05-06
I want to add a column in Orders but I cant.

Could someone show me how to do it?

It should be a column called Visible
The type should be Boolean or YES/NO

Nwind.mdb
0
Comment
Question by:Mickeys
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 3
  • +2
13 Comments
 
LVL 10

Expert Comment

by:mahome
ID: 24294399
that should do

alter table order add column visible bit

Open in new window

0
 

Author Comment

by:Mickeys
ID: 24294455
I dont have anything to run that in. Are u able to modify my mdb?
0
 
LVL 85
ID: 24294478
Note also that "Visible" is used as a Property for many items in Access, and while it's not a Reserved word, you really shouldn't use it as a column name ... instead, use something like "bVisible" or some such construct.

0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 46

Expert Comment

by:tbsgadi
ID: 24294491
!. You shouldn't call a column Visible as it is a reseved word
2. The database is 97 format ,are you using access 97?
0
 
LVL 46

Expert Comment

by:tbsgadi
ID: 24294494
If your not using 97 you should convert it to a later version.
0
 
LVL 46

Expert Comment

by:tbsgadi
ID: 24294509
Scott...I stand corrected!
0
 
LVL 42

Accepted Solution

by:
pcelba earned 500 total points
ID: 24294671
The new column is there. Access 2007 allowed it as a standard action without database structure conversion to newer format.
Nwind.mdb
0
 
LVL 85
ID: 24295030
Gary:

I was surprised to find that "Visible" was NOT a keyword ... I had actually written much the same post as you, then decided to search for this before posting, and was really surprised to find it wasn't a keyword for either Access OR Jet ...
0
 

Author Comment

by:Mickeys
ID: 24295739
Great. Thx.

I am using 2003.

Could I ask you to do one more thing?
Take MY attach file above again and do the samething in Customers table.
Add a collumn called bVisible and make in YES/NO or boolean.
(in this mdb it shoulnd be this column in the table order)

0
 
LVL 42

Expert Comment

by:pcelba
ID: 24295807
Please clarify: You need just "bVisible" column in Customers table and Orders must remain unchanged?
0
 
LVL 42

Assisted Solution

by:pcelba
pcelba earned 500 total points
ID: 24295919
So the change (in Customers) is here. Just one question: Is it really impossible to add new column if you display the table in Access 2003? FYI, Access 2007 always displays one more column called "Add new field" when you view the table and you can use this column to add new coulmn to any table.
Nwind.mdb
0
 

Author Comment

by:Mickeys
ID: 24296256
Thx.

All I have found is the designview.....I tried to add the column there but it wont be saved so I have no idea why. Anyway thx for the help.
0
 
LVL 42

Expert Comment

by:pcelba
ID: 24296312
Yes, exactly. The design view does not allow it even in Access 2007. Maybe we should read help :-).
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question