Computer Learning Zone CLZ Access Excel Word Windows

One glance at a book and you hear the voice of another person, perhaps someone dead for 1,000 years. To read is to voyage through time.

-Carl Sagan
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Microsoft Access 328    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 

Robert Whishaw 
    
10 years ago
I seem to have run into the same problems as RayA McCain but I've managed to solve the error messages & have a new problem.
The 2 issues that I found where:
1) there was no end if at the end of the nested elseif block
2) the video cut out the " & after the AND in the ReceivedPOs if statement. It should look like:
wherestr = wherestr & " AND " & wherestr = wherestr & "POReceived= true"

Now for my current problem:
When I select the openpos or receivedpos checkboxes the list box doesn't get filtered. Both it & the PODetail subform are blank. I've slightly altered the VBA code for my design purposes but the basis is the same.


Private Sub BuildPOList()

    Dim s As String
    Dim wherestr As String
    
    s = "SELECT PurchaseOrderID, VendorName, PODate FROM PurchaseOrderQ"
    wherestr = ""
    
    If OpenPOs = True Then
        wherestr = "IsOpen = True"
        OpenPOLabel.Caption = "Open PO's"
    ElseIf OpenPOs = False Then
        wherestr = "IsOpen = False"
        OpenPOLabel.Caption = "Closed PO's"
    End If
    
    If ReceivedPOs = True Then
        If wherestr <> "" Then
        wherestr = wherestr & " AND " & wherestr = wherestr & "POReceived= true"
        ReceivedPOLabel.Caption = "Received PO's"
        End If
    ElseIf ReceivedPOs = False Then
        If wherestr <> "" Then
        wherestr = wherestr & " AND " & wherestr = wherestr & "POReceived= false"
        ReceivedPOLabel.Caption = "Unreceived PO's"
        End If
    End If
    
    If wherestr <> "" Then
        s = s & " WHERE " & wherestr
    End If
    
        s = s & " ORDER BY PODate"
        
    POList.RowSource = s
    POList = POList.ItemData(0)
    PODetailUpdate
    
    If OpenPOs = True Then
        PurchaseOrderDetailF.Locked = False
    Else
        PurchaseOrderDetailF.Locked = True
    End If
    
End Sub


Any help would be much appreciated.
I'm loving these inventory management classes!
Thanks


Reply from Alex Hedley:

I'd need to check into this as it's been a few years since I've watch this.

One thing to check might be
PODetailUpdate

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Microsoft Access 328.
 

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 7:38:58 PM. PLT: 2s