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  

Option group selection as query criteria



 
 
Thread Tools Display Modes
  #1  
Old May 28th, 2004, 04:01 PM
Tara
external usenet poster
 
Posts: n/a
Default Option group selection as query criteria

I'm pretty familiar with a lot of the basics of Access,
but have never worked with an option group before. I
have one on a data entry form and am using it
for "coding" in a table. No problems there. What I need
to know, is can I use a selection from this same option
group as query criteria. For example, a user goes in and
adds 10 new records to the table using the option group
selection to "code" it. Then , they want to run a report
to pull all of the records that are coded "2". I have a
command button on the form itself to run the report, but
I need to use the option group to determine which records
to pull. Is this possible? If so, how should it be done?

Thanks for any help!
Tara
  #2  
Old May 28th, 2004, 04:18 PM
Duane Hookom
external usenet poster
 
Posts: n/a
Default Option group selection as query criteria

You can set up a similar option group on your form for the criteria. Then
set the criteria under your code field to:
Forms!frmYourForm!optYourGroup

--
Duane Hookom
MS Access MVP
--

"Tara" wrote in message
...
I'm pretty familiar with a lot of the basics of Access,
but have never worked with an option group before. I
have one on a data entry form and am using it
for "coding" in a table. No problems there. What I need
to know, is can I use a selection from this same option
group as query criteria. For example, a user goes in and
adds 10 new records to the table using the option group
selection to "code" it. Then , they want to run a report
to pull all of the records that are coded "2". I have a
command button on the form itself to run the report, but
I need to use the option group to determine which records
to pull. Is this possible? If so, how should it be done?

Thanks for any help!
Tara



 




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 08:57 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.