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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Combo Box query for current record



 
 
Thread Tools Display Modes
  #1  
Old February 26th, 2007, 03:31 PM posted to microsoft.public.access.queries
Mariano
external usenet poster
 
Posts: 10
Default Combo Box query for current record

I am sure this is a common issue, but I couldn't find it in my searches....

I have a form bound to a table called entry. The field 'speed' is a combo
list that pulls from a query called speedlist. The idea is that you can only
pick an applicable speed based on what is entered in the 'machinetype' and
'machinevendor' field. Works fine with one record, but obviously when i add
records the query is returning matches for each record in the entry table,
not just the current record. That makes my choices in the speed field
incorrect.
Is there a way to limit the query to just the current record?
  #2  
Old February 26th, 2007, 09:37 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Combo Box query for current record

Yes, use criteria that reference the form and refresh query once you have
selected the 'machinetype' and 'machinevendor'.

To use the form textboxes as criteria reference like this ---
[Forms]![YourFormName]![machinetype]

[Forms]![YourFormName]![machinevendor]

--
KARL DEWEY
Build a little - Test a little


"Mariano" wrote:

I am sure this is a common issue, but I couldn't find it in my searches....

I have a form bound to a table called entry. The field 'speed' is a combo
list that pulls from a query called speedlist. The idea is that you can only
pick an applicable speed based on what is entered in the 'machinetype' and
'machinevendor' field. Works fine with one record, but obviously when i add
records the query is returning matches for each record in the entry table,
not just the current record. That makes my choices in the speed field
incorrect.
Is there a way to limit the query to just the current record?

  #3  
Old February 26th, 2007, 09:46 PM posted to microsoft.public.access.queries
Mariano
external usenet poster
 
Posts: 10
Default Combo Box query for current record

Ah!
For some reason I didn't think that would work with a bound form, but it
worked perfectly.
Thanks so much!

"KARL DEWEY" wrote:

Yes, use criteria that reference the form and refresh query once you have
selected the 'machinetype' and 'machinevendor'.

To use the form textboxes as criteria reference like this ---
[Forms]![YourFormName]![machinetype]

[Forms]![YourFormName]![machinevendor]

--
KARL DEWEY
Build a little - Test a little


"Mariano" wrote:

I am sure this is a common issue, but I couldn't find it in my searches....

I have a form bound to a table called entry. The field 'speed' is a combo
list that pulls from a query called speedlist. The idea is that you can only
pick an applicable speed based on what is entered in the 'machinetype' and
'machinevendor' field. Works fine with one record, but obviously when i add
records the query is returning matches for each record in the entry table,
not just the current record. That makes my choices in the speed field
incorrect.
Is there a way to limit the query to just the current record?

 




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 04:09 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.