| |
|
Courses - Microsoft
Access 329 |
| Description: |
Advanced Access
Recordsets |
| Running Time: |
76 minutes |
| Pre-Requisites: |
Access 328 very strongly recommended |
| Versions: |
|
We use Access 2003 in this course,
but most of the lessons are valid for all versions of Access from 95 to 2003.
There are cosmetic changes in Access 2007. Order before 9/5/2010 to
get a FREE upgrade to our 2007 version when released!
|
|
|
|
|
| |
|
Full course details with screenshots coming soon.
Access 329 - Course Outline
1. Purchase Order Report, Part 1
Printable Purchase Order
Grab MyCompany Info from InvoiceR
PO Information
Line Item Information
SUM of Items Quantities
COUNT of Line Items
WhereStr to WhereBox
Print Selected PO
2. Purchase Order Report, Part 2
Print All Listed POs
NoData event if no purchase orders
3. Closing POs, Receiving Parts Part 1
Mark PO as Sent to Vendor
UPDATE Query With Just SQL
UPDATE Table SET Fields WHERE Condition
Mark PO as Parts Received
4. Closing POs, Receiving Parts Part 2
Hiding Unnecessary Buttons in Code
"Sent to Vendor" label on PO
5. Emailing Purchase Orders, Part 1
File > Send To > Mail Recipient as Attachment
HTML Format
Snapshot Format
Microsoft Access Snapshot Viewer
Text Format
DoCmd.SendObject
acFormatHTML
acFormatTXT
acFormatSNP
acFormatRTF
acFormatXLS
6. Emailing Purchase Orders, Part 2
PO Report not Formatted Good for Email
Also Sends EVERY PO
Making a Unique PurchaseOrderEmailR
7. Sending Bulk Email to Customers
Add buttons for new forms to our menus
Add IncludeInEmails field to CustomerT
Bulk eMail List
Recordset to Send Bulk Email
acSendNoObject
Microsoft Outlook Email Security "Feature"
|
|
 |
Huge Discounts Available
When you purchase multiple classes together
Huge savings up to 50% off! Order Now. |
|
| |
Student Interaction:
Microsoft Access 329
|
Richard on 1/1/2008:
Purchase order report, Emailing POs to vendors, sending bulk email from Access to Outlook |
|
Terry Hopper on 8/31/2009: I believe all I need to do to receive partial orders is to have a 'Yes/No' box next to the part being modified as 'Partial' or 'Not' correct? And write the code accordingly, correct? That should make the lesson simpler as opposed to doing an entire lesson on partial received items. Just a thought. I will try this. |
|
Richard Rost on 4/12/2010: Out of the hundreds of students who have taken this course, only ONE has found this bug - and it's a good one. If you RECEIVE parts from a vendor, the Quantity On Hand in the Products table is never updated! Here's the updated code for the button (PartsReceivedButton) that fixes the problem. Just replace all of the code in the button with this:
' --------------------------------------------------------
If IsNull(POList) Then Exit Sub
If MsgBox("Are you sure you want to mark this " & _
"purchase order PARTS RECEIVED?", _
vbYesNoCancel) <> vbYes Then Exit Sub
' --------- MISSING BEGIN -----------------------
Dim db As Database
Dim rs1 As Recordset, rs2 As Recordset
Set db = CurrentDb()
Set rs1 = db.OpenRecordset("SELECT * FROM PurchaseOrderDetailsT WHERE PurchaseOrderID=" & POList, dbOpenSnapshot)
rs1.MoveFirst
While Not rs1.EOF
Set rs2 = db.OpenRecordset("SELECT * FROM ProductT WHERE ProductID=" & rs1!ProductID, dbOpenDynaset)
rs2.Edit
rs2!QtyOnHand = rs2!QtyOnHand + rs1!Quantity
rs2.Update
rs2.Close
rs1.MoveNext
Wend
rs1.Close
Set rs1 = Nothing
Set rs2 = Nothing
Set db = Nothing
' --------- MISSING END -------------------------
Dim S As String
S = "UPDATE PurchaseOrderT SET PartsReceived=TRUE " & _
"WHERE PurchaseOrderID=" & POList
DoCmd.RunSQL S
BuildPOList
' --------------------------------------------------------
As you can see, everything between the "MISSING BEGIN" and "MISSING END" was just added by me. You need to create a Recordset loop to go through each item in the PODetails table and increase that product ID's quantity on hand.
I can't believe it has taken a year and a half for someone to catch this problem. This course was released in October of 2008. Wow.
Anyhow, thanks to Darl H. for catching this... and sorry it took me so long to post a solution. |
|
|
| |
| |
|
You may want to read these articles from the 599CD Blog: |
|
| |
|
 |
| |
| 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. |
|
|
|
|
|
| |
|

CLICK HERE for a FREE
lesson |

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