Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / January 2005

Tip: Looking for answers? Try searching our database.

ComboBox with Disappearing contents

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kevin K - 20 Jan 2005 14:58 GMT
Originally posted to microsoft.public.access.forms yesterday:

Greetings to one and all, can someone please give me a steer in the right
direction with the following:

I have an MS Access 2000 form which uses 2 text boxes and three combo boxes
to derive the selection criteria used to return the rows on the form.  This
all works nicely unless there are no records for the current combination of
criteria then the content of two combo boxes (which have a query rowsorce)
are no longer visible, the 2 text boxes and the combo with a list rowsource
are fine, any ideas?

I believe that the content in the ComboBox is still there together with the
selection list but it does not display a selection even after update??

Thanks in Anticipation.

Kevin
Rob Oldfield - 20 Jan 2005 22:05 GMT
What are the row sources of the two combos?  What does the SQL look like?

> Originally posted to microsoft.public.access.forms yesterday:
>
[quoted text clipped - 14 lines]
>
> Kevin
Kevin K - 21 Jan 2005 12:14 GMT
Rob thanks for the reply and apologies for the delayed response,

The first combo box uses a union query against a 2 local tables, and the
second again uses a union query but returns two fields from a query against
a linked SQL table.

Row Source 1:

SELECT [QryLandlordUNION].[Append_field] FROM [QryLandlordUNION]

QryLandlordUnion:

SELECT [Append_field] from [TblAppendField] where [Append_Field] <>"none"

UNION select [RPTgrp] from [TblLandlordGrp];

The query Adds "All" to the list of Report Groups (RPTgrp) from the Landlord
group table which is a local Jet Table.

Row Source 2:

SELECT qryPriorityUnion.Code, qryPriorityUnion.DESN FROM qryPriorityUnion;

QryPriorityUnion

Select "ALL" as Code,  [Append_field] as DESN from [TblAppendField] where
[Append_Field] <>"none"

UNION SELECT dbo_cmpgencd.code_id, dbo_cmpgencd.desn

FROM dbo_cmpgencd

WHERE (((dbo_cmpgencd.category_id)="priority") AND
((dbo_cmpgencd.mod_id)="hsg"));

Again this adds an "All" row to the records returned from a linked SQL
table.

As I stated in the original post - the problem only occurs when the
selections from the Combos and text boxes return no rows, if this occurs
then the two combos with query based rowsources have a pick list but if any
thing is selected then that selection is not displayed.

Very Odd.

Thanks

Kevin

> What are the row sources of the two combos?  What does the SQL look like?
>
[quoted text clipped - 22 lines]
>>
>> Kevin
Rob Oldfield - 21 Jan 2005 13:48 GMT
Both of these combos are unbound?

> Rob thanks for the reply and apologies for the delayed response,
>
[quoted text clipped - 71 lines]
> >>
> >> Kevin
Kevin K - 21 Jan 2005 15:28 GMT
Correct, all of the combo and text boxes are unbound. On further inspection
the text boxes which contain dates and are populated by a calander pop up
also have a problem:-

If there are no records and you update the dates via the calendar controls
then this change is not reflected in the display of the text boxes but the
value is changed if you view it in the intermediate window...

The combo box with a list rowsource is fine...

Thanks

K.

> Both of these combos are unbound?
>
[quoted text clipped - 81 lines]
>> >>
>> >> Kevin
Rob Oldfield - 21 Jan 2005 19:38 GMT
I've just set up a simple of what you describe here - just based on the
local table combo - and it works fine.  So that's no help.  A couple of
things you could try...

Simplify the form by removing the filtering controls to try and see which
one of them is causing the problem.

...that would be if you were very determined to figure out why it's not
working, if you're more interested in getting a working form then I'd go
for....

Take the filtering controls and put them onto a subform within the main
form.

Though I've just had another thought...do you have the form set with
AllowAdditions switched off?  Might also be playing with the LimitToList
property of the combo as well.

> Correct, all of the combo and text boxes are unbound. On further inspection
> the text boxes which contain dates and are populated by a calander pop up
[quoted text clipped - 95 lines]
> >> >>
> >> >> Kevin
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.