Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Access 2010 VBA Programmer's Reference
This is the forum to discuss the Wrox book Access 2010 Programmer's Reference by Teresa Hennig, Rob Cooper, Geoffrey L. Griffith, Jerry Dennison; ISBN: 978-0-470-59166-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Access 2010 VBA Programmer's Reference section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #11 (permalink)  
Old July 15th, 2013, 04:47 PM
Registered User
Points: 29, Level: 1
Points: 29, Level: 1 Points: 29, Level: 1 Points: 29, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2013
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Back to code for cascading combo box

I have redone this code a million times...I'm losing it! I changed the name of the combo boxes to cboDenialCat and cboRoot Cause. When I enter in the code below I get this error message 'Compile Error Sub or function not defined':

Private Sub cboDenialCat_AfterUpdate()

Me!cboRootCause = Null

If IsNull(cboDenialCat) Then
Me!cboDenialCat.SetFocus

Me!cboRootCause.Enabled = False

Else
Me!cboRootCause.Enabled = True
Me!cboRootCause.RowSource = ReplaceWhereClause(Me!cboRootCause.RowSource, _
"Where Root Cause = " & Me!cboDenialCat)
Me!cboRootCause.Requery
End If

End Sub

I thought by renaming the combo boxes it would help. I'm so confused. I also don't know if the lookup table is what I need (if I could even get it to work) because we also want the ability for the user to enter in information for the Reason (under Root Cause table).




Similar Threads
Thread Thread Starter Forum Replies Last Post
Cascading Combo Boxes in Excel 2007 kmmagee Excel VBA 0 October 26th, 2007 10:20 AM
Cascading Combo Box Maureen227 Access 2 May 30th, 2006 05:42 AM
Cascading combo lists in continuous forms rjd97c Access 1 June 30th, 2004 02:51 PM
Combo Boxes tjs206 VB Databases Basics 2 December 10th, 2003 05:20 PM
combo boxes damnnono_86 Access 2 October 15th, 2003 09:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.