PC Review


Reply
Thread Tools Rate Thread

Combo box refresh with limit to list = no

 
 
Hugh self taught
Guest
Posts: n/a
 
      25th May 2010
Hi O'wonderful gurus,

I have a combo box that is limit to list = no with the following query

SELECT [Male].[S_Name]+', '+[Male].[F_Name]+' '+'&'+'
'+[Female].[S_Name]+', '+[Female].[F_Name] AS Couple,
CombinedCpl.CombinedCplNo, CombinedCpl.Combined_Idx,
CombinedCpl.CombinedCplID, CombinedCpl.RegYN AS MaleChk, CombinedCpl.RegYN AS
FemaleChk, CombinedCpl.CombinedMale, CombinedCpl.CombinedFem
FROM CombinedComp AS Male INNER JOIN (CombinedCpl INNER JOIN CombinedComp AS
Female ON CombinedCpl.CombinedFem = Female.CompetitorID) ON Male.CompetitorID
= CombinedCpl.CombinedMale
WHERE (((CombinedCpl.RegYN)=[Male].[CombinedReg] And
(CombinedCpl.RegYN)=[Female].[CombinedReg]))
ORDER BY [Male].[S_Name]+', '+[Male].[F_Name];

I use If Me.cboNonCplLook.ListIndex = -1 Then
to determine whether a matching record exists. If not I open a form to add
the new couple. I then make my "addUnlisted" form not visible requery the cbo
on the originating form & close the "addUnlisted" form.

I cannot change the cbo limit to list to = yes for various reasons.

2 issues for me are:- when I retype the search criteria into the cbo after
requerying, the added record appears twice although only once in the
underlying table.

I'd like the added record to be found & selected when I close the
"addUnlisted" form & return focus to the cbo so the user can just tab to the
next field. Any suggestions since I'm sure there must be a way to do it. I
just don't know how yet
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
limit the contents of one combo/list box based on what's selected inanother combo/list box CDF Microsoft Access 11 7th Mar 2009 03:23 PM
Limit list of combo box based on selection of another combo =?Utf-8?B?U28gQ2FsbCBNZSBDcmF6eQ==?= Microsoft Access Form Coding 2 31st Aug 2007 07:44 PM
Combo Box and Limit To List =?Utf-8?B?TmFuZXR0ZQ==?= Microsoft Access Form Coding 4 13th Mar 2007 07:01 PM
When click a combo box, I want to refresh the combo box's list, how to achieve this? Martin Microsoft Access 1 21st Jul 2005 02:41 AM
How to limit combo box list based on value in another combo box? =?Utf-8?B?UGF0IERvb2xz?= Microsoft Access Form Coding 3 9th May 2005 04:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:49 PM.