<!DOCTYPE html>
    <html lang="vi" xmlns="http://www.w3.org/1999/xhtml" prefix="og: http://ogp.me/ns#">
    <head>
<title>Tiêu chí thay thế &#40;Alternate Criteria&#41; trong Access 2016</title>
<meta name="description" content="Tiêu chí thay thế &#40;Alternate Criteria&#41; trong Access 2016 - Savefile - Tin Tức -...">
<meta name="author" content=".: Nguoicodonvn2008.info - Cõi lòng người cô đơn :.">
<meta name="copyright" content=".: Nguoicodonvn2008.info - Cõi lòng người cô đơn :. [admin@nguoicodonvn2008.info]">
<meta name="robots" content="index, archive, follow, noodp">
<meta name="googlebot" content="index,archive,follow,noodp">
<meta name="msnbot" content="all,index,follow">
<meta name="generator" content="NukeViet v4.5">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta property="og:title" content="Tiêu chí thay thế &#40;Alternate Criteria&#41; trong Access 2016">
<meta property="og:type" content="website">
<meta property="og:description" content="Savefile - Tin Tức - https&#x3A;&#x002F;&#x002F;www.nguoicodonvn2008.info&#x002F;vi&#x002F;news&#x002F;savefile&#x002F;kien-thuc-may-tinh&#x002F;tieu-chi-thay-the-alternate-criteria-trong-access-2016-853.html">
<meta property="og:site_name" content=".&#x3A; Nguoicodonvn2008.info - Cõi lòng người cô đơn &#x3A;.">
<meta property="og:url" content="https://www.nguoicodonvn2008.info/vi/news/savefile/kien-thuc-may-tinh/tieu-chi-thay-the-alternate-criteria-trong-access-2016-853.html">
<link rel="shortcut icon" href="https://nguoicodonvn2008.info/favicon.ico">
<link rel="canonical" href="https://www.nguoicodonvn2008.info/vi/news/savefile/kien-thuc-may-tinh/tieu-chi-thay-the-alternate-criteria-trong-access-2016-853.html">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/" title="Tin Tức" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/karaoke-dual/" title="Tin Tức - Karaoke Dual" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/nhac-tre/" title="Tin Tức - Nhạc trẻ" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/tru-tinh/" title="Tin Tức - Trữ tình" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/nuoc-ngoai/" title="Tin Tức - Nước ngoài" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/remix/" title="Tin Tức - Remix" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/tam-su-tinh-yeu/" title="Tin Tức - Tâm sự tình yêu" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/tho-suu-tam/" title="Tin Tức - Thơ sưu tầm" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/cuoc-song/" title="Tin Tức - Cuộc sống" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/phan-mem/" title="Tin Tức - Phần mềm" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/kien-thuc-may-tinh/" title="Tin Tức - Kiến thức máy tính" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/hoc-tap/" title="Tin Tức - Học tập" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/tai-lieu/" title="Tin Tức - Tài liệu" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/de-thi/" title="Tin Tức - Đề thi" type="application/rss+xml">
<link rel="preload" as="style" href="https://nguoicodonvn2008.info/assets/css/font-awesome.min.css" type="text/css">
<link rel="preload" as="style" href="https://nguoicodonvn2008.info/themes/default/css/bootstrap.non-responsive.css" type="text/css">
<link rel="preload" as="style" href="https://nguoicodonvn2008.info/themes/default/css/style.css" type="text/css">
<link rel="preload" as="style" href="https://nguoicodonvn2008.info/themes/default/css/style.non-responsive.css" type="text/css">
<link rel="preload" as="style" href="https://nguoicodonvn2008.info/themes/default/css/news.css" type="text/css">
<link rel="preload" as="style" href="https://nguoicodonvn2008.info/themes/default/css/custom.css" type="text/css">
<link rel="preload" as="script" href="https://nguoicodonvn2008.info/assets/js/jquery/jquery.min.js" type="text/javascript">
<link rel="preload" as="script" href="https://nguoicodonvn2008.info/assets/js/language/vi.js" type="text/javascript">
<link rel="preload" as="script" href="https://nguoicodonvn2008.info/assets/js/DOMPurify/purify3.js" type="text/javascript">
<link rel="preload" as="script" href="https://nguoicodonvn2008.info/assets/js/global.js" type="text/javascript">
<link rel="preload" as="script" href="https://nguoicodonvn2008.info/assets/js/site.js" type="text/javascript">
<link rel="preload" as="script" href="https://nguoicodonvn2008.info/themes/default/js/news.js" type="text/javascript">
<link rel="preload" as="script" href="https://nguoicodonvn2008.info/themes/default/js/main.js" type="text/javascript">
<link rel="preload" as="script" href="https://nguoicodonvn2008.info/themes/default/js/custom.js" type="text/javascript">
<link rel="preload" as="script" href="https://nguoicodonvn2008.info/themes/default/js/bootstrap.min.js" type="text/javascript">
<link rel="stylesheet" href="https://nguoicodonvn2008.info/assets/css/font-awesome.min.css">
<link rel="stylesheet" href="https://nguoicodonvn2008.info/themes/default/css/bootstrap.non-responsive.css">
<link rel="stylesheet" href="https://nguoicodonvn2008.info/themes/default/css/style.css">
<link rel="stylesheet" href="https://nguoicodonvn2008.info/themes/default/css/style.non-responsive.css">
<link rel="StyleSheet" href="https://nguoicodonvn2008.info/themes/default/css/news.css">
<link rel="stylesheet" href="https://nguoicodonvn2008.info/themes/default/css/custom.css">
<style type="text/css">
	body{background: #fff;}
</style>
    </head>
    <body>
<div id="print">
	<div id="hd_print">
		<h2 class="pull-left">.&#x3A; Nguoicodonvn2008.info - Cõi lòng người cô đơn &#x3A;.</h2>
		<p class="pull-right"><a title=".&#x3A; Nguoicodonvn2008.info - Cõi lòng người cô đơn &#x3A;." href="https://nguoicodonvn2008.info/">https://nguoicodonvn2008.info</a></p>
	</div>
	<div class="clear"></div>
	<hr />
	<div id="content">
		<h1>Tiêu chí thay thế &#40;Alternate Criteria&#41; trong Access 2016</h1>
		<ul class="list-inline">
			<li>Thứ tư - 28/08/2019 01:51</li>
			<li class="hidden-print txtrequired"><em class="fa fa-print">&nbsp;</em><a title="In ra" href="javascript:;" onclick="window.print()">In ra</a></li>
			<li class="hidden-print txtrequired"><em class="fa fa-power-off">&nbsp;</em><a title="Đóng cửa sổ này" href="javascript:;" onclick="window.close()">Đóng cửa sổ này</a></li>
		</ul>
		<div class="clear"></div>
		<div id="hometext">
		</div>
				<div class="imghome">
			<img alt="Tiêu chí thay thế &#40;Alternate Criteria&#41; trong Access 2016" src="https://st.quantrimang.com/photos/image/2019/06/12/tieu-chi-thay-the-4.jpg" width="460" class="img-thumbnail" />
		</div>
		<div class="clear"></div>
		<div id="bodytext" class="clearfix">
			<p style="text-align: justify;">Truy vấn rất mạnh mẽ trong cơ sở dữ liệu nhờ khả năng phân tích dữ liệu nhanh chóng và chính xác. Ngoài những cách sử dụng truy vấn Quantrimang.com đã giới thiệu ở những bài học trước, bạn còn có thể xem dữ liệu, bản ghi thỏa mãn từ hai điều kiện trở lên bằng cách sử dụng&nbsp;<strong>tiêu chí thay thế</strong>.</p>

<p style="text-align: justify;">Bạn có thể thêm tiêu chí thay thế bằng hai cách sau:</p>

<ul>
	<li style="text-align: justify;">Sử dụng toán tử&nbsp;<strong>OR</strong>&nbsp;để kết hợp hai bộ tiêu chí.</li>
	<li style="text-align: justify;">Sử dụng lưới thiết kế truy vấn, nhưng thay vì chỉ định các tiêu chí trên cùng một dòng, bạn sẽ tách nó thành nhiều hàng.</li>
</ul>

<p style="text-align: justify;">Cụ thể mời bạn đọc theo dõi những nội dung dưới đây.</p>

<p style="text-align: justify;">Hãy xem một ví dụ đơn giản sử dụng các tiêu chí thay thế trong một truy vấn. Đầu tiên, mở cơ sở dữ liệu Access của bạn, sau đó chuyển đến tab&nbsp;<strong>Create</strong>&nbsp;và nhấp vào&nbsp;<strong>Query Design.</strong></p>

<figure>
<div style="text-align: justify;"><img alt="Vào tab Create và chọn Query Design để xuất hiện Show Table" data-i="0" height="408" src="https://st.quantrimang.com/photos/image/2019/06/12/tieu-chi-thay-the-1.jpg" width="353" /></div>

<figcaption>
<div style="text-align: justify;">Vào tab Create và chọn Query Design để xuất hiện Show Table</div>
</figcaption>
</figure>

<p style="text-align: justify;">Trong&nbsp;<strong>Show Table,</strong>&nbsp;chọn bảng muốn truy vấn, ở đây là&nbsp;<strong>tblNhanvien,</strong>&nbsp;click đúp chuột vào và chọn&nbsp;<strong>Close.</strong></p>

<figure>
<div style="text-align: justify;"><img alt="Tên các trường của tblNhanvien sẽ hiện lên để bạn chọn" data-i="1" height="412" src="https://st.quantrimang.com/photos/image/2019/06/12/tieu-chi-thay-the-2.jpg" width="650" /></div>

<figcaption>
<div style="text-align: justify;">Tên các trường của tblNhanvien sẽ hiện lên để bạn chọn</div>
</figcaption>
</figure>

<p style="text-align: justify;">Trong cửa sổ bảng, nhấp đúp chuột vào tên của các trường bạn muốn xuất hiện trong truy vấn. Chúng sẽ được thêm vào lưới thiết kế ở phần dưới cùng của màn hình. Ở đây ta chọn&nbsp;<strong>NhanvienID, Ten, Ho, ChucDanh, Dienthoai</strong>.</p>

<figure>
<div style="text-align: justify;"><img alt="Chọn trường NhanvienID, Ten, Ho, ChucDanh và Dienthoai" data-i="2" height="415" src="https://st.quantrimang.com/photos/image/2019/06/12/tieu-chi-thay-the-3.jpg" width="650" /></div>

<figcaption>
<div style="text-align: justify;">Chọn trường NhanvienID, Ten, Ho, ChucDanh và Dienthoai</div>
</figcaption>
</figure>

<p style="text-align: justify;">Bây giờ chỉ định tiêu chí thay thế trong các hàng khác nhau của trường&nbsp;<strong>Ho.</strong>&nbsp;Khi chạy truy vấn này, bạn sẽ cho hiển thị các nhân viên có họ là&nbsp;<strong>Bui</strong>&nbsp;hoặc&nbsp;<strong>Vu.</strong>&nbsp;</p>

<figure>
<div style="text-align: justify;"><img alt="Nhân viên có họ là &#039;Bui&#039; hoặc &#039;Vu&#039; sẽ hiển thị khi chạy truy vấn" data-i="3" height="154" src="https://st.quantrimang.com/photos/image/2019/06/12/tieu-chi-thay-the-4.jpg" width="650" /></div>

<figcaption>
<div style="text-align: justify;">Nhân viên có họ là &quot;Bui&quot; hoặc &quot;Vu&quot; sẽ hiển thị khi chạy truy vấn</div>
</figcaption>
</figure>

<p style="text-align: justify;">Thực hiện truy vấn bằng cách nhấp vào lệnh&nbsp;<strong>Run</strong>&nbsp;trên tab&nbsp;<strong>Design,</strong>&nbsp;bạn sẽ thấy kết quả như này:</p>

<figure>
<div style="text-align: justify;"><img alt="Xuất hiện bản ghi thông tin nhân viên có họ theo như tiêu chí thay thế" data-i="4" height="129" src="https://st.quantrimang.com/photos/image/2019/06/12/tieu-chi-thay-the-5.jpg" width="519" /></div>

<figcaption>
<div style="text-align: justify;">Xuất hiện bản ghi thông tin nhân viên có họ theo như tiêu chí thay thế</div>
</figcaption>
</figure>

<p style="text-align: justify;">Nếu muốn áp dụng tiêu chí thay thế trong nhiều trường thì bạn thêm điều kiện vào các hàng khác nhau cho trường tương ứng. Bây giờ, thử thêm một tiêu chí thay thế khác, ngoài các nhân viên có họ là&nbsp;<strong>Vu</strong>&nbsp;hoặc&nbsp;<strong>Bui,</strong>&nbsp;ta bổ sung thêm điều kiện có chức danh công việc là&nbsp;<strong>Biên dịch</strong>.</p>

<figure>
<div style="text-align: justify;"><img alt="Thêm &#039;Biendich&#039; vào trường Chucdanh để lấy thêm bản ghi" data-i="5" height="153" src="https://st.quantrimang.com/photos/image/2019/06/12/tieu-chi-thay-the-6.jpg" width="650" /></div>

<figcaption>
<div style="text-align: justify;">Thêm &quot;Biendich&quot; vào trường Chucdanh để lấy thêm bản ghi</div>
</figcaption>
</figure>

<p style="text-align: justify;">Kết quả trả về:</p>

<figure>
<div style="text-align: justify;"><img alt="Kết quả bao gồm nhân viên họ &#039;Vu&#039;, &#039;Bui&#039; và nhân viên có chức danh &#039;Bien dich&#039;" data-i="6" height="169" src="https://st.quantrimang.com/photos/image/2019/06/12/tieu-chi-thay-the-7.jpg" width="422" /></div>

<figcaption>
<div style="text-align: justify;">Kết quả bao gồm nhân viên họ &quot;Vu&quot;, &quot;Bui&quot; và nhân viên có chức danh &quot;Bien dich&quot;</div>
</figcaption>
</figure>
		</div>
				<div id="author">
						<p>
				<strong>Nguồn tin:</strong>
				Quantrimang.com
			</p>
		</div>
	</div>
	<div id="footer" class="clearfix">
		<div id="url">
			<strong>URL của bản tin này: </strong><a href="https://www.nguoicodonvn2008.info/vi/news/savefile/kien-thuc-may-tinh/tieu-chi-thay-the-alternate-criteria-trong-access-2016-853.html" title="Tiêu chí thay thế &#40;Alternate Criteria&#41; trong Access 2016">https://www.nguoicodonvn2008.info/vi/news/savefile/kien-thuc-may-tinh/tieu-chi-thay-the-alternate-criteria-trong-access-2016-853.html</a>

		</div>
		<div class="clear"></div>
		<div class="copyright">
			&copy; .&#x3A; Nguoicodonvn2008.info - Cõi lòng người cô đơn &#x3A;.
		</div>
		<div id="contact">
			<a href="mailto:admin@nguoicodonvn2008.info">admin@nguoicodonvn2008.info</a>
		</div>
	</div>
</div>
        <div id="timeoutsess" class="chromeframe">
            Bạn đã không sử dụng Site, <a onclick="timeoutsesscancel();" href="https://nguoicodonvn2008.info/#">Bấm vào đây để duy trì trạng thái đăng nhập</a>. Thời gian chờ: <span id="secField"> 60 </span> giây
        </div>
        <div id="openidResult" class="nv-alert" style="display:none"></div>
        <div id="openidBt" data-result="" data-redirect=""></div>
		</script>
		<div class="car-top">
  <span><img src="https://nguoicodonvn2008.info/themes/default/images/car.png" alt=""></span>
</div>
<script src="https://nguoicodonvn2008.info/assets/js/jquery/jquery.min.js"></script>
<script>var nv_base_siteurl="/",nv_lang_data="vi",nv_lang_interface="vi",nv_name_variable="nv",nv_fc_variable="op",nv_lang_variable="language",nv_module_name="news",nv_func_name="savefile",nv_is_user=0, nv_my_ofs=-4,nv_my_abbr="EDT",nv_cookie_prefix="nv4c_e856T",nv_check_pass_mstime=1738000,nv_area_admin=0,nv_safemode=0,theme_responsive=0,nv_recaptcha_ver=2,nv_recaptcha_sitekey="",nv_recaptcha_type="image",XSSsanitize=1;</script>
<script src="https://nguoicodonvn2008.info/assets/js/language/vi.js"></script>
<script src="https://nguoicodonvn2008.info/assets/js/DOMPurify/purify3.js"></script>
<script src="https://nguoicodonvn2008.info/assets/js/global.js"></script>
<script src="https://nguoicodonvn2008.info/assets/js/site.js"></script>
<script src="https://nguoicodonvn2008.info/themes/default/js/news.js"></script>
<script src="https://nguoicodonvn2008.info/themes/default/js/main.js"></script>
<script src="https://nguoicodonvn2008.info/themes/default/js/custom.js"></script>
<script type="application/ld+json">
        {
            "@context": "https://schema.org",
            "@type": "Organization",
            "url": "https://nguoicodonvn2008.info",
            "logo": "https://nguoicodonvn2008.info/uploads/angel.gif"
        }
        </script>
<script src="https://nguoicodonvn2008.info/themes/default/js/bootstrap.min.js"></script>
<script type="text/javascript">
var $scrolltop = $('.car-top');
$scrolltop.on('click', function () {
    $('html,body').animate({
        scrollTop: 0
    }, 800);
    $(this).addClass("car-run");
    setTimeout(function(){ $scrolltop.removeClass('car-run');}, 1000);
    return false;
});
$(window).on('scroll', function ()
{ 
    if($(window).scrollTop() >= 200)
    {
        $scrolltop.addClass("show");
        $scrolltop.addClass("car-down");
    }
    else
    {
       $scrolltop.removeClass("show");
       setTimeout(function(){ $scrolltop.removeClass('car-down');}, 300);
    }
});
</script>
</body>
</html>