You are watching: How to set criteria in access to begin with a letter
(Note: If you shot to copy the criteria fields shown below directly to Access, you may gain an extra collection of quotation marks that will should be deleted. Microsoft indigenous quotation marks carry out not always work in Access.)As one example, check out the following access query the pulls straightforward course data from a data warehouse produced from Banner.

Figure 1
When to run this query you would get something that looks favor this:

Figure 3
Under the Subj_code field, include the criteria “PHYS” to select all sections v a Physics topic code. The various other criteria use the wildcard personality (“*”) to pick records based on additional criteria. For example, under the Term ar you would use the criteria favor “2014*” to choose all records with a term password of 201420, 201430, and also 201430 (corresponding come summer, fall, and spring state in the 2013-14 academic year). Under the Days field you would use the contempt more complex criteria choose “*M*” or favor “*W*” to choose up any type of record through M or W anywhere in the field. Consisting of the * wildcard character both before and after the M and also W ensures the you acquire TWF and just W. Keep in mind that the criterion under the ar Schd_desc could likewise be coded together “Lecture” Or “Lab.”If you code the criteria on separate lines in the query, they duty as an OR condition. For example, the complying with query pulls every sections through a subject code of Physics or through a class form of “Lecture,” therefore you could have a Physics rap or a biology Lecture returned, among many various other possibilities.
Figure 4
Now, let’s say you desire to be able to select the topic code anytime you run the query, without having actually to difficult code it into the criteria field. In the case, you can use brackets <> come specify a user-entry criteria field. For example, the adhering to query prompts friend to go into a subject code, as specified in the criteria
Figure 5
Running this query, girlfriend would check out a pop-up box matching to the criterion you gone into under the Subj_code field.
Figure 6
If you entered “ENGL” at the prompt, friend would see the following output:

Figure 7
As reflected above, just English courses available in the summer appear.Using functional Criteria
Using the output from the original query (Figure 1 and 2 from the start of this article), a an easy criteria expression in the Subj_code field enables you to pick just those records corresponding the criteria (e.g. “MATH”). Friend could also use the wildcard character (“*”) to choose a variety of values; because that example, if you enter “2*” in the criteria ar for Crs_num you pick up just 200-level courses.This have the right to be quite useful, yet what if you want the option of consisting of all topic codes, in enhancement to gift able come select details subject codes? This gets a tiny bit trickier, however it deserve to be done making use of the adhering to syntax in the criteria field.
Figure 8
Under the Subj_code field you would get in the adhering to criterion:Like "*" &>=IIf(Figure 9
As you deserve to see, results include only English courses v 20 or more students.Using day Criteria
Figure 10
In this example, friend would encompass the complying with criterion under the Start_date field:DatePart("m",
See more: How Many Grams Is 1/10 Of An Ounce Of Gold? 1/10 Oz American Gold Eagle Coin (Common Date)Using Tables as Input
Let’s to speak you have the complying with very simple table, with just one record and also three fields, which could be supplied as the basic table for an input form:Figure 11
After you enter the appropriate values right into the input form, you might then operation a query based on the values gone into into the form. The ask structure can look choose this:Figure 12
Note the each criteria field references the corresponding field in the base table; note additionally that the two tables space not linked. Running this query would screen the adhering to output:Figure 13
Only biological lecture sections offered in ax 201530 room included, as specified by the worths in the base table.There room also an ext advanced methods to usage the criteria field in Access, but these tips provide some simple applications that will certainly hopefully prove beneficial to accessibility users.