Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 16th, 2012, 02:14 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help!! Help!! Help!!

I’m not a professional developer, but sometimes I am developing some not very complicated databases to suite my needs. Now I try to upgrade a database that I have developed years ago, which I use every day and everything works just fine. It is a MS Access 2003 database. I need to set up two combobox controls to work together. Since my form has two subforms and a lot of other controls I desided to test the code first on a simple trial form with the two comboboxes only. Everything works fine but when I try to transfer the code to my actual form I get the following error message: The expression After Update you entered as the event property setting produced the following error: A problem occurred while <MyDatabaseName> was communicating with the OLE server or ActiveX Control

Both comboboxes are located on the main form and this is the code that I am trying to run:

Private Sub cboType_AfterUpdate()
Me.cboCategory = 0
Me.cboCategory = Me.cboCategory.ItemData(0)
End Sub

cboType is the first combobox and cboCategory is the second one

What am I doing wrong?
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

All times are GMT -4. The time now is 12:38 PM.

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