599CD.com New Access Seminar Recorded   Collapse Menus
 
 
NEW Courses - Access Imaging, Excel 2007 Level 5 dismiss
 
   
 

What's New?  |  Courses  |  Theater  |  Demo  |  Tips  |  Blog  |  Forums  |  Search  |  Help  |  Order

 
What do you want to learn today? 
 
 
Courses - Microsoft Access 204
Description: Intermediate Microsoft Access 4
Running Time: 65 minutes
Pre-Requisites: Access 203 very strongly recommended
Versions:
We use Access XP in this course, but the lessons are valid for all versions of Access from 95 to 2003. There are cosmetic changes in Access 2007. Order before 3/15/2010 to get a FREE upgrade to our 2007 version when released!
 
Microsoft Access 204
Intermediate Access 4

Designing a Letter Writer, Access Macros, Events, OnDblClick Event, Refresh Macro, Much More. 65 Minutes.
 

AC204 Major Topics

  • Letter Writer
  • Macro Basics
  • On Double Click Event
  • Refresh Macro
  • Report Formatting

In this class we will begin designing our Letter Writer system. With our letter writer, we'll be able to actually type letters and other correspondence into our contact management system and print them out in a letter or memo format to mail or fax to our customers.

 

We'll begin by developing a query that only shows the current contact record. We'll use this query to feed our report that lets us print out the letter. We'll use the technique we learned in a previous class to get the Contact ID value from the open contact form.

 

Now that we have the query built, we can build the Contact Letter Report. We'll format this report to look like a normal letter, with the customer's name and address and the body of the letter ready to mail.

 

Next we'll place a Print As Letter button on our form so that we can print the letter right up.

 

We'll learn about what it means when records are Dirty - or in the process of being edited, and how this hurts our database... we can't directly print a letter now until we manually save the data to the table. We'll need something more powerful.

 

In lesson three, we'll begin to learn about Macros. We'll make a couple of real simple macros just to teach you how they work - and how we can make them repeat automated tasks. We'll make a simple macro just to beep at you.

 

Then we'll make a macro that's a little more complicated. It will open a form, beep, open a table, and then tell you "I'm done now, Master!"

 

Next, we'll make a macro that will allow us to open up the current customer record from the contact form. We will assign this macro to the On Dbl Click event (on double-click) in our customer combo box. This means the user just has to double-click on the combo box to open up that customer. Real powerful stuff!

 

Now that we've learned about macros, we can actually make a macro to refresh the current contact record before printing it - assuring us that the data is saved in the table before printing. We'll learn how to make a command button that runs a macro.

 

Once we're done with the macros, we'll actually get into making our letter report look good. We'll start by making some new fields to concatenate our name fields and address fields together.

 

We'll learn how to automatically adjust the vertical spacing of fields on our forms and reports.

 

We'll talk about the margins of the page, and making sure you set the report at it's optimal width.

 

We'll put the company logo and our return address in the page header...

 

This class begins to take our contact management system and use it for correspondence as well. We'll do more with this in coming classes - including a mass-mailing form and letter as well. We also begin to learn about Macros, which are the stepping stone to Visual Basic programming. Don't miss this course!

 

Access 204 Outline
 
0. Introduction

1. Contact Letter Query
Build a query that shows only the current contact
Getting the ContactID from the form into our query

2. Contact Letter Report
Designing our Contact Letter Report
Placing the Print As Letter button
Dirty records - data needs to be saved

3. Macro Basics
Constructing basic macros
Beep macro action
OpenForm macro action
OpenTable macro action
MsgBox macro action
On Dbl Click event
OpenForm WHERE condition

4. Refresh Macro
RunCommand, Refresh macro action
OpenReport macro action
Creating a new button using the macro

5. Formatting the Letter
Creating new name and address fields
String concatenation in a new text box
Formatting as a long date
Format > Vertical Spacing > Increase
Report width, page width, margins
Placing a logo in the page header
Making a multi-line label
 


Try a FREE Demo Lesson

 
 

Huge Discounts Available
When you purchase multiple classes together
Huge savings up to 50% off! Order Now.
 

Student Interaction: Microsoft Access 204

Richard on 1/1/2007:  Designing a Letter Writer, Access Macros, Events, OnDblClick Event, Refresh Macro, Much More. 65 Minutes.
sasson cohen on 4/13/2008: do we have an index/list for reviewing each theme on each class ( maybe to support our design )?
Richard Rost on 4/16/2008: Sasson, you can find a searchable index of all of my Access classes at www.599cd.com/Access/Index
Margaret  Cattarin on 9/3/2008: Richard, I have tried everything that I can think of to stop decimals from rounding out to whole integers. Is there hidden code somewhere?
Richard Rost on 9/8/2008: Margaret, that all depends on what you're doing. I need more information to go on. What type of FIELD are you working with? Number? If so, did you format it as an INTEGER or LONG INTEGER? If so, that's your problem.
 Elsa on 10/27/2008: Hi Richard, How do I format only a few words within a concatenation in a report textbox? Example: "Your balance is:" & "[Balance]" I want [Balance] to be in bold and formatted to ##,###.00 while the rest of the concatenation stays the same.
Richard Rost on 10/27/2008: Use the FORMAT function. Here are some examples: ="Your balance is " & Format(Balance,"##,###.00") ="Your birthday is " & Format(DOB, "mm/dd/yy") ="You owe " & Format(Balance, Currency) I cover this in Access 311
Elsa on 10/28/2008: Hi Richard, Thank you for your help. I am currently at 223 but will keep going.
Elsa on 11/18/2008: Hi Richard, Does MS Access 2003 and earlier have the functionality to bold a portion of a concatenated string in a report textbox?
Richard Rost on 11/23/2008: Elsa, nope. You can't change the format of PART of a textbox string.
Greg Paradise on 2/18/2009: I'm using 2000 version and the Refresh from the run command will not run, I get an error that says this version does not support the function. Do I need to have my cd in?
 
 

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

 

 

Need Help
 
Do you have questions about Word, Excel, Access, Web Design, or computers in general? Just ask us anything you'd like. Click here for assistance.
 

Get Free Tips & Tricks
 

Join our mailing list today and get information on our Free Tips & Tricks Newsletter including free video tutorials, eBooks, live seminars, and more.

Email:
Name:
Type in the word to the left:
 
Your email will be kept 100% safe and will never be given to 3rd parties.
 


CLICK HERE for a FREE lesson



Order your first 599CD course now.
Your Satisfaction is Guaranteed!


Subscribe to our RSS FeedWhat's This?

599CD on Facebook  599CD on Twitter  Subscribe to RSS Feed  Add to Live Bookmarks  Add to My AOL  Add to MyYahoo  Add to Google Reader or Homepage    hide help

599CD Home   |   Learn More   |   What's New?   |   Contact Us   |   Free Demo   |   FAQs   |   Order Now   |   Affiliate Program   |   TechHelp   |   MYOLP   |   Jobs   |   Downloads   |   Handbooks  (Text)   |    Mailing List   |   Lost Passwords   |   Referral Program   |   Online Poll   |   Corporate, Educational, Government, Non-Profit Sales   |   Message Forums   |   Testimonials   |   Privacy Policy   |   Free Gift CDs   |   Tips & Tricks

 
 

What's New  |  Home  |  Courses  |  Demo  |  Learn More  |  Contact  |  Order