There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Business Applications
Tag Cloud
access acer asus bios bsod computer crash drive driver drivers error ethernet excel freeze games gaming graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard netgear network printer problem ram random registry router slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications >
Access 2003 ComboBox not displaying data

Reply  
Thread Tools
TechDad09's Avatar
Junior Member with 6 posts.
 
Join Date: Apr 2009
Experience: Advanced
16-Oct-2009, 12:34 PM #1
Access 2003 ComboBox not displaying data
I have a combobox in a subform within a subform that will not display data when the main form is displayed/loaded. If I click on the combobox (giving focus to the field) the data will appear. All other data within the subform displays fine.
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 14,665 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
16-Oct-2009, 12:50 PM #2
TechDad, welcome to the Forum.
It sounds like you haven't "Bound" the Combo to a field on the Subform.
i.e. in the Combo's Control Source is there a Field Name from the Subform's Field list?
TechDad09's Avatar
Junior Member with 6 posts.
 
Join Date: Apr 2009
Experience: Advanced
16-Oct-2009, 01:07 PM #3
Yes the combobox is bound to a field. I tried attaching a screen shot but it is bigger than the maximum size allowed for attachments.
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 14,665 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
16-Oct-2009, 01:17 PM #4
If there is data in that field for the current record then the Combo should show it.
The other thing to check is the Column Widths of the Combo.
If you would like to post a copy of the database as a Zipped attachment or send it to me I can take a look at it for you.
Place the screenshot in an Excel sheet and then Zip it to put it on here.
__________________
OBP
I do not give up easily
TechDad09's Avatar
Junior Member with 6 posts.
 
Join Date: Apr 2009
Experience: Advanced
16-Oct-2009, 01:21 PM #5
See attached .JPG file.
Attached Thumbnails
Access 2003 ComboBox not displaying data-combobox-issue-20091016.jpg  
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 14,665 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
16-Oct-2009, 01:34 PM #6
What is in the second column of the combo, it's width is also set to 0cm?
Is there a Record in the subform with the ContactID in that record?
TechDad09's Avatar
Junior Member with 6 posts.
 
Join Date: Apr 2009
Experience: Advanced
16-Oct-2009, 01:42 PM #7
See attached for the "Select" that loads the ComboBox (shows field list).

As mentioned earlier there is an underlying record and the data appears, but only after you give focus to that field (by clicking on it).
Attached Thumbnails
Access 2003 ComboBox not displaying data-combobox-issue-20091016-2-.jpg  
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 14,665 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
16-Oct-2009, 01:49 PM #8
I think I have come across this before, but can't remember the cause
Is the ContactAssociationId Column needed in the combo?
Have you tried creating a new combo with just the Contacts Table in it to see if it populates?
TechDad09's Avatar
Junior Member with 6 posts.
 
Join Date: Apr 2009
Experience: Advanced
16-Oct-2009, 01:55 PM #9
I believe I can remove the ContactAssociationID.

I have not tried loading the Combo Box with just the Contacts Table. I'll check it out.

Note I will need to do this tonight or this weekend. I'm currently at work and this is a personal application.
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 14,665 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
16-Oct-2009, 02:01 PM #10
No problem, I am here all the time during the day usually from about 10:00am to 6:00 pm including weekends or you can email me if required.
My wife doesn't let me "work" in the evenings
TechDad09's Avatar
Junior Member with 6 posts.
 
Join Date: Apr 2009
Experience: Advanced
16-Oct-2009, 03:08 PM #11
I had some time at lunch.

I removed the ContactAssociation table and read directly from the Contacts Table. This worked, but it does not solve my need. I obviously want to limit the contents of the combobox using the Association table too.

I also tried just removing the ContactAssociationID, but that did not work. Same results, must click to see the data.

Any thoughts?
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 14,665 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
17-Oct-2009, 07:55 AM #12
There are a couple of things you could try, you could try changing the Join between the Conatcts and Association Tables using "All records from Association table and only those matching from the Contacts table" but I doubt it will make any difference.
You could also try making the Row Source a Query rather than SQL as it is at the moment.

You could also try some simple VBA in the SubForm's On Current Event Procedure.
Like
me.PhysicianName.setfocus
or
me.PhysicianName.requery
or even
me.PhysicianName.requery
me.PhysicianName.setfocus
__________________
OBP
I do not give up easily
Reply

Tags
access, office, office 2003

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:46 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.