Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
 
 
Courses - Microsoft Access 326
Description: Advanced Access Recordsets
Running Time: 84 minutes
Pre-Requisites: Access 325 very strongly recommended
Previous Lesson: Access 325
Next Lesson: Access 327
Main Topics: Inventory, Quantity On Hand, OldValue, Stock Levels, Ship Date, OK To Ship, Lock Paid Orders, AllowEdits, AllowDeletions, AllowAdditions, Refund an Order
Versions: This course is valid for Access 2000 through 2003. If you are using Access 2007 or 2010, you will still benefit from this course. You will find that the concepts are the same, but there are cosmetic differences between the versions.

    
 

We will be going back to our Order Form in this class. We'll begin by setting the whole order as LOCKED as soon as it's marked PAID. This way no further changes can be made to it.

 

Next we'll set up a REFUND button so that someone can take a paid order and mark it NOT paid, but at least its a separate step (and you can optionally put a password on it).

 

Next we'll add a ShipDate field and "Ship Order" button to the invoice. Click on the button, and the invoice will be marked SHIPPED.

 

Next we're going to start tracking inventory levels. We'll add a Quantity On Hand field to our product table and form.

 

We'll add a note in our System Log any time a user changes an inventory level so we can see EXACTLY where our products are going.

 

Next we'll examine a problem we have where if we add the same product multiple times, we get multiple line item entries in the order.

 

We'll write some VBA code so that if you click on Add Product multiple times for the same product, it just increments the Quantity field. This is a much nicer result.

 

Next we'll start working on the process of shipping an order. First, we'll check stock levels. If we can't ship an order because we don't have enough inventory, the database will yell at you.

 

Now we'll write the code to actually remove the items from inventory once they're shipped. This all happens behind the scenes, but it updates your product table.

 

 


Access 326 - Course Outline

1. Locking Orders When Paid
Pull Databases Back Together
Lock the Order if it's Paid
Me.AllowEdits
Me.AllowDeletions
Me.AllowAdditions
OrderSubform.Form.AllowEdits
OrderSubform.Form.AllowDeletions
OrderSubform.Form.AllowAdditions

2.Refunding an Order
Refund Button
Marking Unpaid in VBA Code
Can't Hide a Control That Has Focus
Pay a Quote Bug
Me.Undo

3. Ship Date
Add ShipDate Field
Lock The ShipDate
Show the ShipButton only if needed
ShipOrder Button
Can't Refund a Shipped Order

4. Inventory Levels
Quantity On Hand (QtyOnHand)
Adding Our UserLogon Form To Database
Adding a Log feature
Field.OldValue
Tracking which employee changed inventory level

5. Items Already On Order
Add QtyOnHand to Product Combo on OrderDetailF
Increment Quantity if already on order
Warning if no product picked
Create a recordset to increment quantity
Compile error: ByRef argument type mismatch

6. Shipping The Order, Part 1
OKToShip Function
Check to see if we have enough inventory on hand

7. Shipping The Order, Part 2
Optional Parameters
ChangeInventory function
Actually ship the items


 

 

 

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 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 4/27/2025 6:31:39 PM. PLT: 0s