Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Business Applications
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop drivers dvd email error excel excel 2003 firefox hard drive hardware hdmi hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem recovery router safe mode screen slow sound spyware tdlwsp.dll trojan vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications >
Access 2003 ComboBox not displaying data

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

 
Thread Tools
TechDad09's Avatar
Junior Member with 6 posts.
 
Join Date: Apr 2009
Experience: Advanced
16-Oct-2009, 11:34 AM #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 9,329 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
16-Oct-2009, 11:50 AM #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, 12: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 9,329 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
16-Oct-2009, 12: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, 12: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 9,329 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
16-Oct-2009, 12: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, 12: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 9,329 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
16-Oct-2009, 12: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, 12: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 9,329 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
16-Oct-2009, 01: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, 02: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 9,329 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
17-Oct-2009, 06: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 Bookmark and Share

Tags
access, office, office 2003

Smart Search

Find your solution!



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


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 02:57 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.