Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
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 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
 
Old April 13th, 2007, 02:12 PM
Authorized User
 
Join Date: Sep 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default Combo Box can't find Object message

Greetings,

I have a form. This form has a combo box that looks up records in a table. When the form opens up and I click on the combo box, the records display in the drop-down list just fine. HOWEVER, when I select one of the records I get an error message that my application 'CAN'T FIND THE OBJECT...'. It's also telling me that I either misspelled it OR that I am using a linked table?

Any suggestions would be great. I will provide any further info. if necessary.

thanks

Paul
__________________
Paul
 
Old April 13th, 2007, 02:22 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 217
Thanks: 0
Thanked 1 Time in 1 Post
Default

Paul,

What is the record source for the combobox? (Go to the Data Tab on Properties)?


 
Old April 13th, 2007, 02:28 PM
Authorized User
 
Join Date: Sep 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks. This is what is in the recordsource line.

"SELECT [T_SetupSheetCombinationsDetail].ComboCustPartNum, [T_SetupSheetCombinationsDetail].ComboLength, [T_SetupSheetCombinationsDetail].ComboColor, [T_SetupSheetHeader].CustPartDescription, tblArCust.CustName, [T_SetupSheetCombinationsDetail].QuoteID FROM [tblArCust] INNER JOIN ([T_SetupSheetCombinationsDetail] INNER JOIN [T_SetupSheetHeader] ON [T_SetupSheetCombinationsDetail].QuoteID = [T_SetupSheetHeader].QuoteID) ON [tblArCust].CustId = [T_SetupSheetHeader].CustID WHERE ((([T_SetupSheetCombinationsDetail].ComboCustPartNum) Is Not Null) AND (([tblArCust].CustId)= 'AME04')) ORDER BY [T_SetupSheetCombinationsDetail].ComboCustPartNum"


thanks and hope it helps... f.y.i. when I ckick on the arrow button of the combo box, it does return rows for me.

Paul
 
Old April 13th, 2007, 02:41 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 217
Thanks: 0
Thanked 1 Time in 1 Post
Default

Yeh, SOMETHING is probably misspelled or missing in here then. It can't find it so your combo box then WILL be empty.

How did you make your combo box?

What are T_SetupSheetCombinationsDetail, T_SetupSheetHeader? (are they tables?)
Did you CHANGE ANYTHING (either a name or did you remove anything) from tblArCust or T_SetupSheetCombinationsDetail or T_SetupSheetHeader after you created the combo?

 
Old April 13th, 2007, 02:57 PM
Authorized User
 
Join Date: Sep 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes. The these ARE the tables. This is in fact the code I use in the record source line in order to bring back info. to the drop-down list for the combo box. Just to clarify, the drop-down list of the combo box IS getting populated. It's when I select a row that it barks.

thanks...

Paul
 
Old April 13th, 2007, 03:27 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 217
Thanks: 0
Thanked 1 Time in 1 Post
Default

Sorry Paul, I missread what you said.

Taking a quick look at your SQL it looks like the parenthesis are all there. Can you confirm item by item that each field is spelled correctly and exists in its given table?
Is there anything in the click event of the combobox?







Similar Threads
Thread Thread Starter Forum Replies Last Post
Combo box to display items from parent combo box Gini Visual Studio 2008 0 June 18th, 2008 12:30 AM
Combo box choice creating filtered combo box stevensj5 Access 11 September 13th, 2007 11:33 AM
filling a combo box from a data object allee_man Beginning VB 6 1 March 1st, 2005 08:08 AM
Find Record Use Combo Box martinaccess Access 2 October 17th, 2004 07:42 AM
Find Record Combo Box Wizard Won't Show 3rd Choice HenryE Access 0 February 2nd, 2004 11:52 PM





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