Access 2007-2016
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
 
Home   News   Tips   Glossary   Templates   Forums   Help   Logon   Order   Contact Us  
 

News      User Comments     History     Notify Me

10/21/2011 3:41:28 AM
Access SQL Seminar Part 3
By Richard Rost   Richard Rost on Facebook Richard Rost on Twitter Richard Rost on Google Plus Richard Rost on LinkedIn Email Richard Rost

 
This two-hour long seminar on Microsoft Access SQL picks up where PART 2 left off. You will learn how to manipulate the structure of your databases using simple SQL commands. You'll be able to build and modify tables, queries, indexes, relationships, and much more. These techniques are especially powerful for developers who have to support remote, back-end database files.

1. Learn how to create a modify a Table
2. Discover the different Access SQL Data Types
3. Create Indexes for your tables
4. Connect to external databases using SQL
5. Construct a CONSTRAINT clause
6. Work with table relationships
7. Learn the differences between ANSI-89 and ANSI-92 SQL
8. Set up Referential Integrity between your tables
9. Create stored views and procedures
10. Learn about Access database security via SQL

Click here for more information on the ACCESS SQL SEMINAR, PART 3.

Permanent Link
Course Link: Access SQL Seminar Part 3
Keywords: access sql structured query language
Page Tag: whatsnew
Post Reply

MySQL Form Comment from Kenny Nelson @ 10/7/2015
I LOVE THE MYSQL FORM!  What a great idea!  I am actually using it to create a VBA code library.  I added a description field to my MySQLT where I can put a key phrase such as Error Handling, and I store my error handling routine in the MySQL field.  Whenever I need some code, I know right where to find it without having to start from scratch!
Show Just This Thread        Post Reply
Is the create delete tmp table the appropriate way Comment from Tom Dlugosh @ 2/25/2015
Is the create/delete tmp table the appropriate way to copy records, manipulate some of the fields and copy the revised data back into the original table as new data or is there an easier way?


Reply from Alex Hedley:

You could do it a record at a time with an UPDATE query.
Just depends exactly what you want to do and how may changes you need to make.
Show Just This Thread        Post Reply
Comment from Zied Ben Afia @ 2/3/2014
Hi Richard !
is any DAO seminar coming soon?
If yes please let us know when exactly
Show Just This Thread        Post Reply
Indexes Comment from Brad @ 10/13/2013
Thank you Richard for the tip on Composite Keys.  That will do the trick!!

I just have not reviewed all of the Tip videos yet.

Brad
Show Just This Thread        Post Reply
Indexes Comment from Bradley Biles @ 10/12/2013
Hi Richard,

I know this is probably way past the time from when you created this seminar, but on the topic of Constraints when two fields are involved, my current project will have this situation and will be a required by the Nevada Gaming Commission.  We cannot have to gaming machines that have the same Model Number and the same Serial Number.  This Constraint is perfect for my InventoryT table & entry form to stay in compliance and double check the manufacturer.

Brad


Reply from Richard Rost:

You can set up indexes that are based on two keys, so you can't have duplicates that are a combination of BOTH fields. This is called a COMPOSITE KEY.
Show Just This Thread        Post Reply
SQL Server Seminar Comment from Lone Vistoft @ 6/17/2013
You say in this seminar,  that there will soon be a SQL Server seminar. Are you able to provide information on when this will happen?
Kind regards Lone


Reply from Richard Rost:

I don't have a date for it, but it's going to be soon. I need to finish up the Office 2013 lessons I have planned first, then I'll be working on several different seminars. Check the production schedule for more information.
Show Just This Thread        Post Reply
Alter table affects data Comment from Mubeezi Micah @ 7/11/2012
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.
Show Just This Thread        Post Reply
Access SQL Seminar Part 3 Comment from David R @ 6/19/2012
Good evening Richard,
I was in the process of looking seminar 3 for SQL. There are two questions if you can please help me with. I am having a issue with the enter key behavior with in the properites. For some reason I am able to press enter and cursor goes to the next line. After copying and pasting CREATE TABLE TempT "(FirstName TEXT (20), LastName TEXT (20)); " into the text box and for some reason I am not able to get the command to work. The error message I am getting the data type is not matching. Can you please me both scenarios.

Thank you


Reply from Richard Rost:

Have you followed the steps in the video EXACTLY? What is the EXACT error message you get?
Show Just This Thread        Post Reply
Comment from Chris @ 3/5/2012
I was asking does the db that we are remotely modifying (which is an access application file) have to be running during the remote changes or is it enough that we have provided the full path name of the db for your code to access the file to modify it?.

I suppose I should just do it my self and answer my own question.


Reply from Richard Rost:

The BEST way to answer ANY question it to try it yourself. It's always AWESOME to answer your own questions. But... you shouldn't need to have the database open in Access in order to modify it. In fact, it's probably better that you don't.
Show Just This Thread        Post Reply
Comment from  Chris @ 3/3/2012
In Altering Tables, you are modifying a remote table (customerT) in the db2 file. My question is: Does the file db2 file need to be running during the modification? (I see you give it the full pathname and filename to the file)


Reply from Richard Rost:

What do you mean by "running?" As long as you have access to the table, and it's not currently LOCKED by another user, then you should be able to modify it.
Show Just This Thread        Post Reply
Comment from Mubeezi Micah @ 11/26/2011
Dear Richard,

I am failing to find the sample database files for SQL part 3. I tried the link above but didn't find it. Please advice me where i can find them.
Thank you!
MICAH


Reply from Richard Rost:

Part 3 didn't have a sample database. We didn't really build anything complex in class. If you really want it I can try to find mine - but I don't think you'd need it.
Show Just This Thread        Post Reply
Access SQL Seminar Part 3 Comment from Mubeezi Micah @ 10/22/2011
Wow! What a seminar! You made manipulating tables look so EASY...even when dealing with a remote database...Thank you Richard and keep it up. I really look forward to the VB and DAO seminars.

MICAH
Show Just This Thread        Post Reply
Access SQL Seminar Part 3 Comment from Alex Hedley @ 10/21/2011
Another fantastic course. :)
Great use of the SQL form.
Brilliant end to the series, loved the bonus tabledef part.

The VB course looks intriguing, hopefully you'll find some time to do it soon!


Reply from Richard Rost:

Wow... that was fast. :) Glad you enjoyed it.

Yes, there's a whole TON of cool stuff you can do with tabledefs (and DAO in general).
Show Just This Thread        Post Reply
Access SQL Seminar Part 3 Comment from Mubeezi Micah @ 10/21/2011
Looks great! i will be the first one to buy it!

MICAH
Show Just This Thread        Post Reply

Add Your Comments or Subscribe
 
If you just want to subscribe to get email updates when the News is updated, then enter your name and email address and check the Notify Me box below. If you would optionally like to add your comments below to be posted, they are welcome.
 
  Your Name:  Required
  Your Email:  NOT Public
  Subject:
  Comments:

 

Sorry about this step. It's just to keep the spam bots away:
  Verify: What is 2+5:
  
  Notify me when the News is updated.
  Remember Me for my next comments
  
 
 
Please do not use this form for Customer Service inquiries! If you have questions about your account, shipping info, courses you've ordered, need passwords, etc. please use the Customer Service Center instead.

I value your comments. They will be displayed on this page (above). Your name will be displayed, but your email address will not be.
As always, I promise to never give away your personal information to anyone else, ever.

NOTE: If you don't leave your name and email address, DON'T expect a reply. I can't promise a personal reply to everyone who posts here. I TRY my best, but I cannot guarantee it. If you don't leave your real name and email address, I won't even bother. I usually just hit DELETE. -Richard

 

 

You may want to read these articles from the 599CD News:

8/25/2018NEW: Access Dev 9, 10, 11
8/25/2018Microsoft Access Developer 11
8/25/2018Microsoft Access Developer 10
8/25/2018Microsoft Access Developer 9
8/23/2018Access Dev 11 is ONLINE
8/17/2018Access Dev 10 is ONLINE
8/15/2018Access Tip: Search Form
8/15/2018Access Tip: Locked v. Enabled
8/15/2018Access Dev 9 is ONLINE
7/31/2018Microsoft Access Developer 8
 

Learn
 
Accessindex
Excelindex
Wordindex
Windowsindex
PowerPointindex
Photoshopindex
Visual Basicindex
ASPindex
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
Free Upgrades
Insider Circle
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Articles
Search Our Site
Waiting List
Production Schedule
Collapse Menus
Help
 
Live Chat
Customer Support
WalkThru Tutorials
Troubleshooting
FAQs
TechHelp
Consulting Services
About Us
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Gift CDs
Contact
 
Live Chat
General Info
Support Policy
Contact Form
Email Us
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

Google Plus    LinkedIn

Blog RSS Feed    YouTube Channel
Richard Rost Microsoft MVP