Computer Learning Zone CLZ Access Excel Word Windows

It is as impossible to withhold education from the receptive mind as it is impossible to force it upon the unreasoning.

-Agnes Repplierg
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access SQL Seminar Part 3    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Alter table affects data
Mubeezi Micah 

14 years ago
Dear Richard,

Strange but true!

I just noticed something at Time Index 5:20 in Video 4.
If i write an SQL command to say ALTER TABLE TempT ALTER COLUMN MiddleName CHAR(50).
It alters the table as expected. But it also alters the existing data!
I somehow noticed that i get extra spaces infront of the existing data. The total length of the records in this field now comes to 50! Kind of strange but its true.
To fix it, you have to either use the RTrim function or to say ALTER TABLE TempT ALTER COLUMN MiddleName TEXT. This would set it to the default 255 characters.

Give it a shot, you will be surprised.

MICAH


Reply from Richard Rost:

That's very strange. I haven't tested it myself (I will when I get some time) but ALWAYS be careful when updating table structure. I have also seen some weird things like this happen before.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access SQL Seminar Part 3.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 5:27:32 AM. PLT: 0s