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  

Requery Event Blanking Out Previously Filled In Fields



 
 
Thread Tools Display Modes
  #1  
Old April 22nd, 2008, 01:43 PM posted to microsoft.public.access.forms
ridgerunner
external usenet poster
 
Posts: 118
Default Requery Event Blanking Out Previously Filled In Fields

I have two combo boxes on a form. One of them allows a user to choose a
category and the other filters the choices available based on the chosen
category. There is a requery event in the afterupdate property of the
category field. That part works fine. The form needs to be viewed in a data
sheet view. If you close the form and re-open it to continue working, a new
entry causes all of the previously entered data in the field containing the
filtered choices to blank out. What am I doing wrong? Any help with this is
greatly appreciated. I am nearing the end of the project I am working on and
this is a big roadblcok.

ridgerunner
  #2  
Old April 23rd, 2008, 12:38 AM posted to microsoft.public.access.forms
Bob Quintal
external usenet poster
 
Posts: 939
Default Requery Event Blanking Out Previously Filled In Fields

=?Utf-8?B?cmlkZ2VydW5uZXI=?=
wrote in :

I have two combo boxes on a form. One of them allows a user to
choose a category and the other filters the choices available
based on the chosen category. There is a requery event in the
afterupdate property of the category field. That part works fine.
The form needs to be viewed in a data sheet view. If you close
the form and re-open it to continue working, a new entry causes
all of the previously entered data in the field containing the
filtered choices to blank out. What am I doing wrong? Any help
with this is greatly appreciated. I am nearing the end of the
project I am working on and this is a big roadblcok.

ridgerunner


Any attempt to use a combobox with a filtered row source is going to
run into the problem, because the combobox will only display data
that is in the current record's source, not those in the other rows
of the continuous form or datasheet.

One trick may be to move the requery to the on_enter event of the
combobox, with a corresponding requery of all the possibilities in
the combo box's on_exit event.

--
Bob Quintal

PA is y I've altered my email address.
** Posted from http://www.teranews.com **
 




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 11:06 AM.


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