Kamis, 03 Mei 2012

[MS_AccessPros] Passing Variable Value to QBE grid

 

Is it possible to pass the value stored in a variable to a criteria box in a Query designed using the Query Design Wizard?

For example, let's say I have an option button group on a Form for male or female and a variable (gender) that stores the result of the gender selection.  I create a Query using the Wizard that has a field called StaffGender from the table.  I want to store what was selected on the Form and then pass what was selected to the Query so I only see the records of either the males or females.  Can I pass the contents of the gender variable to the criteria spot under the StaffGender item in my Query?

Dan

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity:
.

__,_._,___

Tidak ada komentar:

Posting Komentar