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  

all field in combobox



 
 
Thread Tools Display Modes
  #1  
Old March 1st, 2009, 05:35 PM posted to microsoft.public.access.forms
Ian
external usenet poster
 
Posts: 485
Default all field in combobox

I"m using a combobox to sort a query.

In the main form [Frm_RecallList] is a combobox call TxGrp.

There is a subform based on a query that has the where field states:
[Forms].[Frm_RecallList].[TxGrp]

When the user changes the combobox in the Frm_RecallList the Onchange event
is set to Requery the subform.

I can't get it to show all records. I tried not limiting to the list in the
combobox and allow * but it returns no records.

Any ideas?


  #2  
Old March 3rd, 2009, 05:02 PM posted to microsoft.public.access.forms
Kardan via AccessMonster.com
external usenet poster
 
Posts: 18
Default all field in combobox

Hi Ian

This should be a simple fix.

Access is interpreting the selection criteria for your * as [YourField]="*",
ie it must be an asterisk. What you need is the criteria for the query field
to be;
Like([Forms].[Frm_RecallList].[TxGrp])

This way it should always take an exact match when the user has made a
selection on the combobox, but when they select the asterisk it will use this
as a wildcard.

Try it out and see if it works.

Regards

Richard

Ian wrote:
I"m using a combobox to sort a query.

In the main form [Frm_RecallList] is a combobox call TxGrp.

There is a subform based on a query that has the where field states:
[Forms].[Frm_RecallList].[TxGrp]

When the user changes the combobox in the Frm_RecallList the Onchange event
is set to Requery the subform.

I can't get it to show all records. I tried not limiting to the list in the
combobox and allow * but it returns no records.

Any ideas?


--
Regards,

Richard
www.kardanconsulting.co.uk

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200903/1

 




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 02:40 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.