A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Fields not displaying info, but table is correct



 
 
Thread Tools Display Modes
  #1  
Old October 5th, 2006, 09:01 PM posted to microsoft.public.access.forms
JDJones
external usenet poster
 
Posts: 26
Default Fields not displaying info, but table is correct

I have a continuous form with 4 combo boxes for each record. All are
dependent on the selection of the previous field. That part is working. But
as I move down the records, only the current record displays what's in the
underlying table. The other records go blank. But when I move back to
previous records, they display correctly. I have a Requery set on each combo
box in the OnEnter event. Is this causing the display problem, and if so -
what's the fix?
  #2  
Old October 6th, 2006, 12:29 AM posted to microsoft.public.access.forms
John Vinson
external usenet poster
 
Posts: 4,033
Default Fields not displaying info, but table is correct

On Thu, 5 Oct 2006 13:01:03 -0700, JDJones
wrote:

I have a continuous form with 4 combo boxes for each record. All are
dependent on the selection of the previous field. That part is working. But
as I move down the records, only the current record displays what's in the
underlying table. The other records go blank. But when I move back to
previous records, they display correctly. I have a Requery set on each combo
box in the OnEnter event. Is this causing the display problem, and if so -
what's the fix?


Yes, it is the problem. The continuous form *appears* to have separate
combo boxes for each record, but it doesn't - there are only four
combos, and when your dependent-combo code changes the Control Source
for one, it changes all the instances.

You can get around this with some hassle, by carefully superimposing a
textbox (locked, disabled, tab stop off) on the text area of the
combo; set its control source to either a DLookUp expression finding
the displayed value, or base the Form on a query including the lookup
tables and display the field value that way.

John W. Vinson[MVP]
 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:14 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.