<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Thủ Thuật Access - Thư viện thủ thuật]]></title>
		<link>https://thuthuataccess.com/forum/</link>
		<description><![CDATA[Thủ Thuật Access - https://thuthuataccess.com/forum]]></description>
		<pubDate>Sat, 18 Apr 2026 13:42:02 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Giải pháp Chuyển đổi từ địa chỉ cũ sang địa chỉ mới theo đơn vị hành chính hiện tại?]]></title>
			<link>https://thuthuataccess.com/forum/thread-13650.html</link>
			<pubDate>Tue, 01 Jul 2025 08:44:37 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://thuthuataccess.com/forum/member.php?action=profile&uid=19448">tr4i_l3</a>]]></dc:creator>
			<guid isPermaLink="false">https://thuthuataccess.com/forum/thread-13650.html</guid>
			<description><![CDATA[Chuyển đổi hàng loạt địa chỉ từ danh sách, từ file text, hoặc từ table<br />
Mình chưa tìm được bài viết nào về vấn đề này, mong anh chị em giúp đỡ!<br />
Xin cảm ơn!]]></description>
			<content:encoded><![CDATA[Chuyển đổi hàng loạt địa chỉ từ danh sách, từ file text, hoặc từ table<br />
Mình chưa tìm được bài viết nào về vấn đề này, mong anh chị em giúp đỡ!<br />
Xin cảm ơn!]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Phục hồi mật khẩu file ACCDB]]></title>
			<link>https://thuthuataccess.com/forum/thread-12706.html</link>
			<pubDate>Sat, 18 Nov 2023 09:16:24 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://thuthuataccess.com/forum/member.php?action=profile&uid=22549">kevinnguyeniig</a>]]></dc:creator>
			<guid isPermaLink="false">https://thuthuataccess.com/forum/thread-12706.html</guid>
			<description><![CDATA[Chào các bạn,<br />
<br />
Mình có 1 file Accdb bị quên mật khẩu. Nhờ các bạn hỗ trợ phục hồi lại giúp. Trân trọng cảm ơn.<br />
<br />
Thân,]]></description>
			<content:encoded><![CDATA[Chào các bạn,<br />
<br />
Mình có 1 file Accdb bị quên mật khẩu. Nhờ các bạn hỗ trợ phục hồi lại giúp. Trân trọng cảm ơn.<br />
<br />
Thân,]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Các bước để viết một phần mềm quản lý hợp đồng bằng acces]]></title>
			<link>https://thuthuataccess.com/forum/thread-12139.html</link>
			<pubDate>Fri, 06 Aug 2021 02:59:58 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://thuthuataccess.com/forum/member.php?action=profile&uid=20948">hoat</a>]]></dc:creator>
			<guid isPermaLink="false">https://thuthuataccess.com/forum/thread-12139.html</guid>
			<description><![CDATA[Mình đang có kế hạch tạo một file access để quản lý hợp đồng với các yêu cầu:<br />
1. Nhiều người cùng sử dụng để nhập liệu.<br />
2. Phân quyền từng chức năng cho từng user.<br />
Mọi người có thể giúp mình lên thứ tự các công việc phải làm được không? Mình mới tìm hiểu access nên chưa biết cái nào làm trước, cái nào làm sau.<br />
VD: mình chưa biết tạo table và form user trước hay tạo table và form dữ liệu khách hàng trước.<br />
<br />
Mình có tải một vài file trên diễn đàn về để nghiên cứu, một số file mình mở thì ra luôn form không thấy được file đó có các table, form,... gì, làm cách nào để hiện lên các table, các form có trong file.<br />
VD: PhanMemQuanLyKhangViet (Lan) 3.1 (mình muốn xem các table, form có trong file)<br />
<br />
Rất mong nhận được sự hướng dẫn của mọi người.<br />
Xin cảm ơn.]]></description>
			<content:encoded><![CDATA[Mình đang có kế hạch tạo một file access để quản lý hợp đồng với các yêu cầu:<br />
1. Nhiều người cùng sử dụng để nhập liệu.<br />
2. Phân quyền từng chức năng cho từng user.<br />
Mọi người có thể giúp mình lên thứ tự các công việc phải làm được không? Mình mới tìm hiểu access nên chưa biết cái nào làm trước, cái nào làm sau.<br />
VD: mình chưa biết tạo table và form user trước hay tạo table và form dữ liệu khách hàng trước.<br />
<br />
Mình có tải một vài file trên diễn đàn về để nghiên cứu, một số file mình mở thì ra luôn form không thấy được file đó có các table, form,... gì, làm cách nào để hiện lên các table, các form có trong file.<br />
VD: PhanMemQuanLyKhangViet (Lan) 3.1 (mình muốn xem các table, form có trong file)<br />
<br />
Rất mong nhận được sự hướng dẫn của mọi người.<br />
Xin cảm ơn.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Điền dữ liệu tự động trên Form nhập liệu]]></title>
			<link>https://thuthuataccess.com/forum/thread-12122.html</link>
			<pubDate>Wed, 28 Jul 2021 07:18:08 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://thuthuataccess.com/forum/member.php?action=profile&uid=20948">hoat</a>]]></dc:creator>
			<guid isPermaLink="false">https://thuthuataccess.com/forum/thread-12122.html</guid>
			<description><![CDATA[Mình có 2 table tên:<br />
Table DMKH có các cột :  STT, TenVT, TenKH, DC, DT<br />
Table ChaoGia có các cột: STT, TenVT, TenKH, SoChaoGia, GiaChao<br />
Mình tạo một form nhập liệu là FrChaoGia để nhập liêu vào table ChaoGia<br />
Mình muốn là khi nhập TenVT vào xong thì TenKH tự động có.<br />
<br />
Rất mong nhận được hướng dẫn từ mọi người.]]></description>
			<content:encoded><![CDATA[Mình có 2 table tên:<br />
Table DMKH có các cột :  STT, TenVT, TenKH, DC, DT<br />
Table ChaoGia có các cột: STT, TenVT, TenKH, SoChaoGia, GiaChao<br />
Mình tạo một form nhập liệu là FrChaoGia để nhập liêu vào table ChaoGia<br />
Mình muốn là khi nhập TenVT vào xong thì TenKH tự động có.<br />
<br />
Rất mong nhận được hướng dẫn từ mọi người.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Sử dụng hàm SWITCH trong Access]]></title>
			<link>https://thuthuataccess.com/forum/thread-11991.html</link>
			<pubDate>Wed, 14 Jul 2021 02:23:18 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://thuthuataccess.com/forum/member.php?action=profile&uid=20584">tungthoi15</a>]]></dc:creator>
			<guid isPermaLink="false">https://thuthuataccess.com/forum/thread-11991.html</guid>
			<description><![CDATA[Do trong chuyên mục Hàm, mình không thấy nút Tạo chủ đề, nên mình để tạm bài viết ở đây<br />
  Hàm SWITCH:<br />
-<span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">         </span></span>Công dụng: Lượng giá 1 danh sách biểu thức và trả về 1 trị hoặc biểu thức tương ứng đâu tiên trong danh sách có trị True<br />
-<span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">         </span></span>Cú pháp:<br />
<span style="font-weight: bold;" class="mycode_b">SWITCH(Biểu thức 1, Kết quả 1 [, Biểu thức 2, Kết quả 2…..[,Biểu thức n, Kết quả n]])</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b"><span style="font-family: Symbol;" class="mycode_font"><span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">-   *</span></span></span>S</span>witch xét các biểu thức lần lượt từ trái qua phải. Nếu biểu thức 1 là True thì Switch trả về kết quả 1<br />
<span style="font-family: Symbol;" class="mycode_font"><span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">        </span></span></span><span style="font-weight: bold;" class="mycode_b">N</span>ếu biểu thức 1 là False, Biểu thức 2 là True thì Switch trả về Kết quả 2<br />
<span style="font-weight: bold;" class="mycode_b"><span style="font-family: Symbol;" class="mycode_font"><span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">        </span></span></span>N</span>ếu biểu thức 1 là True mà biểu thức 5 bị lỗi (Ví dụ chia cho 0) thì hàm sẽ báo lỗi chứ không trả về kết quả 1<br />
<span style="font-weight: bold;" class="mycode_b"><span style="font-family: Symbol;" class="mycode_font"><span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">        </span></span></span>N</span>ếu mọi biểu thức đều là False thì hàm sẽ trả về giá trị Null<br />
<span style="font-weight: bold;" class="mycode_b"><span style="font-family: Symbol;" class="mycode_font"><span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">        </span></span></span>M</span>uốn chọn giá trị còn lại khi mọi biểu thức đều False, (cũng giống như chọn tình huống còn lại (Else của lệnh IF; hoặc Case Else của Select Case) thì ta dùng hằng True cho biểu thức cuối cùng;<br />
VD: Trong Query       SWITCH(DiemTB&lt;5, “Yếu”,<br />
                                DiemTB&gt;=5 and DiemTB &lt;=6.5, “Trung Bình”,<br />
                                DiemTB&gt;6.5 and DiemTB &lt;8, “Khá”,<br />
                                DiemTB&gt;=8 and DiemTB &lt;9, “Giỏi”,<br />
                                True, “Xuất xắc”)<br />
   ************<br />
Bài Toán Ví dụ:<br />
                Cập nhật tiền thưởng vào bảng tblBanhang cho nhân viên<br />
-<span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">         </span></span>Nếu bán dưới 1.000 sp thì được thưởng 500.000 đ<br />
-<span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">         </span></span>Nếu bán từ 1.000 sp đến dưới 2.000 sp thì được thưởng 1.000.000 đ<br />
-<span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">         </span></span>Nếu bán từ 2.000 sp đến dưới 3.000 sp thì được thưởng 3.000.000 đ<br />
-<span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">         </span></span>Nếu bán từ 3.000 sp đến dưới 4.000 sp thì được thưởng 5.000.000 đ<br />
-<span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">         </span></span>Từ 4.000 sp trở lên thì được thưởng 7.000.000 đ<br />
[img]<img src="https://i.imgur.com/Uz4KxEb.jpg" loading="lazy"  alt="[Hình: Uz4KxEb.jpg]" class="mycode_img" />[/img]<br />
<br />
<br />
=&gt; Nếu dùng Query Update:<br />
<div class="codeblock phpcodeblock"><div class="title">Mã PHP:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">UPDATE&nbsp;tblBanHang&nbsp;SET&nbsp;tblBanHang</span><span style="color: #007700">.</span><span style="color: #0000BB">TienThuong&nbsp;</span><span style="color: #007700">=&nbsp;Switch([</span><span style="color: #0000BB">doanhsoban</span><span style="color: #007700">]&lt;</span><span style="color: #0000BB">1000</span><span style="color: #007700">,</span><span style="color: #0000BB">500000</span><span style="color: #007700">,[</span><span style="color: #0000BB">doanhsoban</span><span style="color: #007700">]&gt;=</span><span style="color: #0000BB">1000&nbsp;</span><span style="color: #007700">And&nbsp;[</span><span style="color: #0000BB">doanhsoban</span><span style="color: #007700">]&lt;</span><span style="color: #0000BB">2000</span><span style="color: #007700">,</span><span style="color: #0000BB">1000000</span><span style="color: #007700">,[</span><span style="color: #0000BB">doanhsoban</span><span style="color: #007700">]&gt;=</span><span style="color: #0000BB">2000&nbsp;</span><span style="color: #007700">And&nbsp;[</span><span style="color: #0000BB">doanhsoban</span><span style="color: #007700">]&lt;</span><span style="color: #0000BB">3000</span><span style="color: #007700">,</span><span style="color: #0000BB">3000000</span><span style="color: #007700">,[</span><span style="color: #0000BB">doanhsoban</span><span style="color: #007700">]&gt;=</span><span style="color: #0000BB">3000&nbsp;</span><span style="color: #007700">And&nbsp;[</span><span style="color: #0000BB">doanhsoban</span><span style="color: #007700">]&lt;</span><span style="color: #0000BB">4000</span><span style="color: #007700">,</span><span style="color: #0000BB">5000000</span><span style="color: #007700">,</span><span style="color: #0000BB">True</span><span style="color: #007700">,</span><span style="color: #0000BB">7000000</span><span style="color: #007700">);&nbsp;<br /></span></code></div></div></div><br />
=&gt; Nếu dùng Code VBA:<br />
<div class="codeblock phpcodeblock"><div class="title">Mã PHP:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">Function&nbsp;</span><span style="color: #0000BB">TinhThuong</span><span style="color: #007700">()<br /></span><span style="color: #0000BB">Dim&nbsp;rs&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">DAO</span><span style="color: #007700">.</span><span style="color: #0000BB">Recordset</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">soluong&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">Single<br />Set&nbsp;rs&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">CurrentDb</span><span style="color: #007700">.</span><span style="color: #0000BB">OpenRecordset</span><span style="color: #007700">(</span><span style="color: #DD0000">"tblBanhang"</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">rs</span><span style="color: #007700">.</span><span style="color: #0000BB">MoveFirst<br /><br /></span><span style="color: #007700">Do&nbsp;While&nbsp;</span><span style="color: #0000BB">Not&nbsp;rs</span><span style="color: #007700">.</span><span style="color: #0000BB">EOF<br />soluong&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">rs</span><span style="color: #007700">(</span><span style="color: #DD0000">"doanhsoban"</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">rs</span><span style="color: #007700">.</span><span style="color: #0000BB">Edit<br />rs</span><span style="color: #007700">(</span><span style="color: #DD0000">"TienThuong"</span><span style="color: #007700">)&nbsp;=&nbsp;Switch(</span><span style="color: #0000BB">soluong&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #0000BB">1000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">500000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">_<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;soluong&nbsp;</span><span style="color: #007700">&gt;=&nbsp;</span><span style="color: #0000BB">1000&nbsp;</span><span style="color: #007700">And&nbsp;</span><span style="color: #0000BB">soluong&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #0000BB">2000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1000000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">_<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;soluong&nbsp;</span><span style="color: #007700">&gt;=&nbsp;</span><span style="color: #0000BB">2000&nbsp;</span><span style="color: #007700">And&nbsp;</span><span style="color: #0000BB">soluong&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #0000BB">3000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">3000000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">_<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;soluong&nbsp;</span><span style="color: #007700">&gt;=&nbsp;</span><span style="color: #0000BB">3000&nbsp;</span><span style="color: #007700">And&nbsp;</span><span style="color: #0000BB">soluong&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #0000BB">4000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">5000000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">_<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;True</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">7000000</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">rs</span><span style="color: #007700">.</span><span style="color: #0000BB">Update<br />rs</span><span style="color: #007700">.</span><span style="color: #0000BB">MoveNext<br />Loop<br />rs</span><span style="color: #007700">.</span><span style="color: #0000BB">Close<br />Set&nbsp;rs&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Nothing<br />End&nbsp;</span><span style="color: #007700">Function&nbsp;<br /></span></code></div></div></div><br />
=&gt;&gt;&gt;&gt;&gt;&gt;KẾT QUẢ:<br />
[img]<img src="https://i.imgur.com/l0AaMYv.jpg" loading="lazy"  alt="[Hình: l0AaMYv.jpg]" class="mycode_img" />[/img]]]></description>
			<content:encoded><![CDATA[Do trong chuyên mục Hàm, mình không thấy nút Tạo chủ đề, nên mình để tạm bài viết ở đây<br />
  Hàm SWITCH:<br />
-<span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">         </span></span>Công dụng: Lượng giá 1 danh sách biểu thức và trả về 1 trị hoặc biểu thức tương ứng đâu tiên trong danh sách có trị True<br />
-<span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">         </span></span>Cú pháp:<br />
<span style="font-weight: bold;" class="mycode_b">SWITCH(Biểu thức 1, Kết quả 1 [, Biểu thức 2, Kết quả 2…..[,Biểu thức n, Kết quả n]])</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b"><span style="font-family: Symbol;" class="mycode_font"><span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">-   *</span></span></span>S</span>witch xét các biểu thức lần lượt từ trái qua phải. Nếu biểu thức 1 là True thì Switch trả về kết quả 1<br />
<span style="font-family: Symbol;" class="mycode_font"><span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">        </span></span></span><span style="font-weight: bold;" class="mycode_b">N</span>ếu biểu thức 1 là False, Biểu thức 2 là True thì Switch trả về Kết quả 2<br />
<span style="font-weight: bold;" class="mycode_b"><span style="font-family: Symbol;" class="mycode_font"><span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">        </span></span></span>N</span>ếu biểu thức 1 là True mà biểu thức 5 bị lỗi (Ví dụ chia cho 0) thì hàm sẽ báo lỗi chứ không trả về kết quả 1<br />
<span style="font-weight: bold;" class="mycode_b"><span style="font-family: Symbol;" class="mycode_font"><span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">        </span></span></span>N</span>ếu mọi biểu thức đều là False thì hàm sẽ trả về giá trị Null<br />
<span style="font-weight: bold;" class="mycode_b"><span style="font-family: Symbol;" class="mycode_font"><span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">        </span></span></span>M</span>uốn chọn giá trị còn lại khi mọi biểu thức đều False, (cũng giống như chọn tình huống còn lại (Else của lệnh IF; hoặc Case Else của Select Case) thì ta dùng hằng True cho biểu thức cuối cùng;<br />
VD: Trong Query       SWITCH(DiemTB&lt;5, “Yếu”,<br />
                                DiemTB&gt;=5 and DiemTB &lt;=6.5, “Trung Bình”,<br />
                                DiemTB&gt;6.5 and DiemTB &lt;8, “Khá”,<br />
                                DiemTB&gt;=8 and DiemTB &lt;9, “Giỏi”,<br />
                                True, “Xuất xắc”)<br />
   ************<br />
Bài Toán Ví dụ:<br />
                Cập nhật tiền thưởng vào bảng tblBanhang cho nhân viên<br />
-<span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">         </span></span>Nếu bán dưới 1.000 sp thì được thưởng 500.000 đ<br />
-<span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">         </span></span>Nếu bán từ 1.000 sp đến dưới 2.000 sp thì được thưởng 1.000.000 đ<br />
-<span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">         </span></span>Nếu bán từ 2.000 sp đến dưới 3.000 sp thì được thưởng 3.000.000 đ<br />
-<span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">         </span></span>Nếu bán từ 3.000 sp đến dưới 4.000 sp thì được thưởng 5.000.000 đ<br />
-<span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Times New Roman;" class="mycode_font">         </span></span>Từ 4.000 sp trở lên thì được thưởng 7.000.000 đ<br />
[img]<img src="https://i.imgur.com/Uz4KxEb.jpg" loading="lazy"  alt="[Hình: Uz4KxEb.jpg]" class="mycode_img" />[/img]<br />
<br />
<br />
=&gt; Nếu dùng Query Update:<br />
<div class="codeblock phpcodeblock"><div class="title">Mã PHP:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">UPDATE&nbsp;tblBanHang&nbsp;SET&nbsp;tblBanHang</span><span style="color: #007700">.</span><span style="color: #0000BB">TienThuong&nbsp;</span><span style="color: #007700">=&nbsp;Switch([</span><span style="color: #0000BB">doanhsoban</span><span style="color: #007700">]&lt;</span><span style="color: #0000BB">1000</span><span style="color: #007700">,</span><span style="color: #0000BB">500000</span><span style="color: #007700">,[</span><span style="color: #0000BB">doanhsoban</span><span style="color: #007700">]&gt;=</span><span style="color: #0000BB">1000&nbsp;</span><span style="color: #007700">And&nbsp;[</span><span style="color: #0000BB">doanhsoban</span><span style="color: #007700">]&lt;</span><span style="color: #0000BB">2000</span><span style="color: #007700">,</span><span style="color: #0000BB">1000000</span><span style="color: #007700">,[</span><span style="color: #0000BB">doanhsoban</span><span style="color: #007700">]&gt;=</span><span style="color: #0000BB">2000&nbsp;</span><span style="color: #007700">And&nbsp;[</span><span style="color: #0000BB">doanhsoban</span><span style="color: #007700">]&lt;</span><span style="color: #0000BB">3000</span><span style="color: #007700">,</span><span style="color: #0000BB">3000000</span><span style="color: #007700">,[</span><span style="color: #0000BB">doanhsoban</span><span style="color: #007700">]&gt;=</span><span style="color: #0000BB">3000&nbsp;</span><span style="color: #007700">And&nbsp;[</span><span style="color: #0000BB">doanhsoban</span><span style="color: #007700">]&lt;</span><span style="color: #0000BB">4000</span><span style="color: #007700">,</span><span style="color: #0000BB">5000000</span><span style="color: #007700">,</span><span style="color: #0000BB">True</span><span style="color: #007700">,</span><span style="color: #0000BB">7000000</span><span style="color: #007700">);&nbsp;<br /></span></code></div></div></div><br />
=&gt; Nếu dùng Code VBA:<br />
<div class="codeblock phpcodeblock"><div class="title">Mã PHP:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">Function&nbsp;</span><span style="color: #0000BB">TinhThuong</span><span style="color: #007700">()<br /></span><span style="color: #0000BB">Dim&nbsp;rs&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">DAO</span><span style="color: #007700">.</span><span style="color: #0000BB">Recordset</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">soluong&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">Single<br />Set&nbsp;rs&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">CurrentDb</span><span style="color: #007700">.</span><span style="color: #0000BB">OpenRecordset</span><span style="color: #007700">(</span><span style="color: #DD0000">"tblBanhang"</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">rs</span><span style="color: #007700">.</span><span style="color: #0000BB">MoveFirst<br /><br /></span><span style="color: #007700">Do&nbsp;While&nbsp;</span><span style="color: #0000BB">Not&nbsp;rs</span><span style="color: #007700">.</span><span style="color: #0000BB">EOF<br />soluong&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">rs</span><span style="color: #007700">(</span><span style="color: #DD0000">"doanhsoban"</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">rs</span><span style="color: #007700">.</span><span style="color: #0000BB">Edit<br />rs</span><span style="color: #007700">(</span><span style="color: #DD0000">"TienThuong"</span><span style="color: #007700">)&nbsp;=&nbsp;Switch(</span><span style="color: #0000BB">soluong&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #0000BB">1000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">500000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">_<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;soluong&nbsp;</span><span style="color: #007700">&gt;=&nbsp;</span><span style="color: #0000BB">1000&nbsp;</span><span style="color: #007700">And&nbsp;</span><span style="color: #0000BB">soluong&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #0000BB">2000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1000000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">_<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;soluong&nbsp;</span><span style="color: #007700">&gt;=&nbsp;</span><span style="color: #0000BB">2000&nbsp;</span><span style="color: #007700">And&nbsp;</span><span style="color: #0000BB">soluong&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #0000BB">3000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">3000000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">_<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;soluong&nbsp;</span><span style="color: #007700">&gt;=&nbsp;</span><span style="color: #0000BB">3000&nbsp;</span><span style="color: #007700">And&nbsp;</span><span style="color: #0000BB">soluong&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #0000BB">4000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">5000000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">_<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;True</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">7000000</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">rs</span><span style="color: #007700">.</span><span style="color: #0000BB">Update<br />rs</span><span style="color: #007700">.</span><span style="color: #0000BB">MoveNext<br />Loop<br />rs</span><span style="color: #007700">.</span><span style="color: #0000BB">Close<br />Set&nbsp;rs&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Nothing<br />End&nbsp;</span><span style="color: #007700">Function&nbsp;<br /></span></code></div></div></div><br />
=&gt;&gt;&gt;&gt;&gt;&gt;KẾT QUẢ:<br />
[img]<img src="https://i.imgur.com/l0AaMYv.jpg" loading="lazy"  alt="[Hình: l0AaMYv.jpg]" class="mycode_img" />[/img]]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Drag n Drop Image]]></title>
			<link>https://thuthuataccess.com/forum/thread-11894.html</link>
			<pubDate>Thu, 20 May 2021 03:32:07 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://thuthuataccess.com/forum/member.php?action=profile&uid=20365">nam0812</a>]]></dc:creator>
			<guid isPermaLink="false">https://thuthuataccess.com/forum/thread-11894.html</guid>
			<description><![CDATA[Chào các bác<br />
Em muốn tạo một ảnh trên form sao cho có thể kéo thả ảnh từ folder vào, sau đó lưu ảnh vào một folder được chỉ định từ trước<br />
Em lang thang trên mạng tìm được drag drop trong exel, mà loay hoay mãi không tạo được trong access<br />
Trong file excel này có thể kéo thả ảnh nhiều lần, khi kéo thả vào thì ảnh cũ được thay thế bằng ảnh mới<br />
Các bác có ý tưởng nào ko ạ <br />
<a href="https://drive.google.com/file/d/1XfYYzFEzW5kEA-NQJ2UVHC24crgZB3Nj/view?usp=sharing" target="_blank" rel="noopener" class="mycode_url">File Exel</a>]]></description>
			<content:encoded><![CDATA[Chào các bác<br />
Em muốn tạo một ảnh trên form sao cho có thể kéo thả ảnh từ folder vào, sau đó lưu ảnh vào một folder được chỉ định từ trước<br />
Em lang thang trên mạng tìm được drag drop trong exel, mà loay hoay mãi không tạo được trong access<br />
Trong file excel này có thể kéo thả ảnh nhiều lần, khi kéo thả vào thì ảnh cũ được thay thế bằng ảnh mới<br />
Các bác có ý tưởng nào ko ạ <br />
<a href="https://drive.google.com/file/d/1XfYYzFEzW5kEA-NQJ2UVHC24crgZB3Nj/view?usp=sharing" target="_blank" rel="noopener" class="mycode_url">File Exel</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Hiển thị số thứ tự ra màn hình 2]]></title>
			<link>https://thuthuataccess.com/forum/thread-11859.html</link>
			<pubDate>Tue, 20 Apr 2021 14:53:31 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://thuthuataccess.com/forum/member.php?action=profile&uid=16122">mrsiro</a>]]></dc:creator>
			<guid isPermaLink="false">https://thuthuataccess.com/forum/thread-11859.html</guid>
			<description><![CDATA[Chào mọi người, mình đang thiết kế hệ thống bắt số xếp hàng cho phòng khám, ý tưởng là tại phòng khám bệnh có 1 cpu chia ra 2 màn hình, 1 màn hình dùng cho các nhu cầu sử dụng bình thường, và 1 màn hình để ở trước cửa phòng khám dùng để hiển thị số thứ tự. Khi bác sĩ mở máy tính lên sẽ mở 2 app, 1 app dùng để khám bệnh và 1 app để hiển thị số ra màn hình bên ngoài của. Vậy làm cách nào để có thể thể hiện app gọi số kia ra màn hình ở ngoài cửa được. <br />
<br />
Như hình bên dưới ngồi ở room A mở app cho hiển thị lên monitor ở roomB.<br />
<br />
<a href="https://ibb.co/KVkF8KX" target="_blank" rel="noopener" class="mycode_url"><img src="https://i.ibb.co/ZcPWb2V/Untitled.png" loading="lazy"  alt="[Hình: Untitled.png]" class="mycode_img" /></a>]]></description>
			<content:encoded><![CDATA[Chào mọi người, mình đang thiết kế hệ thống bắt số xếp hàng cho phòng khám, ý tưởng là tại phòng khám bệnh có 1 cpu chia ra 2 màn hình, 1 màn hình dùng cho các nhu cầu sử dụng bình thường, và 1 màn hình để ở trước cửa phòng khám dùng để hiển thị số thứ tự. Khi bác sĩ mở máy tính lên sẽ mở 2 app, 1 app dùng để khám bệnh và 1 app để hiển thị số ra màn hình bên ngoài của. Vậy làm cách nào để có thể thể hiện app gọi số kia ra màn hình ở ngoài cửa được. <br />
<br />
Như hình bên dưới ngồi ở room A mở app cho hiển thị lên monitor ở roomB.<br />
<br />
<a href="https://ibb.co/KVkF8KX" target="_blank" rel="noopener" class="mycode_url"><img src="https://i.ibb.co/ZcPWb2V/Untitled.png" loading="lazy"  alt="[Hình: Untitled.png]" class="mycode_img" /></a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Chuẩn hóa unicode tổ hợp và unicode dựng sẵn]]></title>
			<link>https://thuthuataccess.com/forum/thread-11853.html</link>
			<pubDate>Sat, 10 Apr 2021 07:05:28 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://thuthuataccess.com/forum/member.php?action=profile&uid=16122">mrsiro</a>]]></dc:creator>
			<guid isPermaLink="false">https://thuthuataccess.com/forum/thread-11853.html</guid>
			<description><![CDATA[Chào mọi người, mình xin chia sẽ thư viện do mình tự viết dùng để chuẩn hóa unicode tổ hợp và unicode dựng sẵn. Để sử dụng được thì mọi người đăng kí với window bằng lệnh cmd sau:<br />
<div class="codeblock"><div class="title">Mã:</div><div class="body" dir="ltr"><code>C:&#92;Windows&#92;Microsoft.NET&#92;Framework&#92;v4.0.30319&#92;RegAsm.exe D:&#92;folder&#92;CustomUnicode.dll /tlb:CustomUnicode.tlb /codebase</code></div></div>Bạn sửa lai đường dẫn d:\folder cho phù hợp với máy của bạn nhé.<br />
<br />
Sau đó mọi người vào cửa sổ code của vba reference đến file .tlb<br />
<img src="https://2.pik.vn/202166f13f30-cba8-4439-a3f3-10540112f5f7.png" loading="lazy"  alt="[Hình: 202166f13f30-cba8-4439-a3f3-10540112f5f7.png]" class="mycode_img" /><br />
<br />
Thư viện này có 2 hàm:<br />
1/ UnicodeDungSan: Dùng để chuyển sang kiểu unicode dựng sẵn.<br />
2/ UnicodeToHop: Dùng để chuyển sang kiểu unicode tổ hợp.<br />
<iframe width="560" height="315" src="//www.youtube-nocookie.com/embed/E6ETDmGYHXk" frameborder="0" allowfullscreen="true"></iframe><br />
<br />
Demo:<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://thuthuataccess.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=858" target="_blank" title="">db1.zip</a> (Kích cỡ: 11.86 KB / Tải về: 14)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://thuthuataccess.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=859" target="_blank" title="">CustomUnicode.zip</a> (Kích cỡ: 2.45 KB / Tải về: 24)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Chào mọi người, mình xin chia sẽ thư viện do mình tự viết dùng để chuẩn hóa unicode tổ hợp và unicode dựng sẵn. Để sử dụng được thì mọi người đăng kí với window bằng lệnh cmd sau:<br />
<div class="codeblock"><div class="title">Mã:</div><div class="body" dir="ltr"><code>C:&#92;Windows&#92;Microsoft.NET&#92;Framework&#92;v4.0.30319&#92;RegAsm.exe D:&#92;folder&#92;CustomUnicode.dll /tlb:CustomUnicode.tlb /codebase</code></div></div>Bạn sửa lai đường dẫn d:\folder cho phù hợp với máy của bạn nhé.<br />
<br />
Sau đó mọi người vào cửa sổ code của vba reference đến file .tlb<br />
<img src="https://2.pik.vn/202166f13f30-cba8-4439-a3f3-10540112f5f7.png" loading="lazy"  alt="[Hình: 202166f13f30-cba8-4439-a3f3-10540112f5f7.png]" class="mycode_img" /><br />
<br />
Thư viện này có 2 hàm:<br />
1/ UnicodeDungSan: Dùng để chuyển sang kiểu unicode dựng sẵn.<br />
2/ UnicodeToHop: Dùng để chuyển sang kiểu unicode tổ hợp.<br />
<iframe width="560" height="315" src="//www.youtube-nocookie.com/embed/E6ETDmGYHXk" frameborder="0" allowfullscreen="true"></iframe><br />
<br />
Demo:<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://thuthuataccess.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=858" target="_blank" title="">db1.zip</a> (Kích cỡ: 11.86 KB / Tải về: 14)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://thuthuataccess.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=859" target="_blank" title="">CustomUnicode.zip</a> (Kích cỡ: 2.45 KB / Tải về: 24)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[Demo P1] Tạo Thông báo bằng form thay thế Msgbox]]></title>
			<link>https://thuthuataccess.com/forum/thread-11842.html</link>
			<pubDate>Fri, 26 Mar 2021 17:08:45 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://thuthuataccess.com/forum/member.php?action=profile&uid=1091">maidinhdan</a>]]></dc:creator>
			<guid isPermaLink="false">https://thuthuataccess.com/forum/thread-11842.html</guid>
			<description><![CDATA[Chức năng: Hiển thị tiếng việt; Chỉnh màu sắc; Chỉnh Font chữ, cỡ chữ; Nút nào hiện thông qua table [tblThongbao]<br />
<br />
Cú pháp: <br />
- Chỉ gọi thôi: GoiThongbao SoTTCuaThongbao<br />
- Gọi để lấy câu trả lời Yes/No; Ok/Cancel: GoiThongbao( SoTTCuaThongbao); Trả về 1 nếu Đồng y<br />
<br />
<br />
* Khuya quá lười viết post video giới thiệu chi tiết<br />
<div style="text-align: center;" class="mycode_align"><iframe width="560" height="315" src="//www.youtube-nocookie.com/embed/5qR-b5wwZag" frameborder="0" allowfullscreen="true"></iframe></div>
<br />
Code:<br />
<div class="codeblock phpcodeblock"><div class="title">Mã PHP:</div><div class="body"><div dir="ltr"><code><span style="color: #DD0000">'&nbsp;--------------------------------------------------------------------------------------------------------<br />'&nbsp;</span><span style="color: #0000BB">Ten&nbsp;Modules</span><span style="color: #007700">/Class:</span><span style="color: #0000BB"> &nbsp; &nbsp;modThongbao<br /></span><span style="color: #DD0000">'&nbsp;Ten&nbsp;ham/thu&nbsp;tuc &nbsp; &nbsp;: &nbsp;GoiThongbao<br />'&nbsp;</span><span style="color: #0000BB">Tao&nbsp;tren&nbsp;may&nbsp;PC &nbsp; &nbsp;</span><span style="color: #007700">:</span><span style="color: #0000BB"> &nbsp;HENDAN<br /></span><span style="color: #DD0000">'&nbsp;Author/&nbsp;Tac&nbsp;gia &nbsp; &nbsp;: &nbsp;maidinhdan@gmail.com&nbsp;, &nbsp;Ngay,&nbsp;gio&nbsp;tao:&nbsp;26/03/2021&nbsp;4:01:39&nbsp;PM<br />'&nbsp;</span><span style="color: #0000BB">Parameters</span><span style="color: #007700">/</span><span style="color: #0000BB">Tham&nbsp;so&nbsp;</span><span style="color: #007700">:<br /></span><span style="color: #DD0000">'&nbsp;Cu&nbsp;phap/&nbsp;Purpose &nbsp;:<br />'&nbsp;</span><span style="color: #0000BB">Pham&nbsp;vi&nbsp;ap&nbsp;dung &nbsp; &nbsp;</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">Goi&nbsp;thong&nbsp;bao&nbsp;bang&nbsp;Form<br /></span><span style="color: #DD0000">'&nbsp;--------------------------------------------------------------------------------------------------------<br />'</span><span style="color: #0000BB">Gia&nbsp;tri&nbsp;tra&nbsp;ve&nbsp;cua&nbsp;ham&nbsp;Goithongbao&nbsp;la</span><span style="color: #007700">:<br /></span><span style="color: #DD0000">'True&nbsp;=&gt;&nbsp;Tuong&nbsp;ung&nbsp;ban&nbsp;da&nbsp;nhan&nbsp;nut &nbsp; &nbsp;Ok/Yes<br />'</span><span style="color: #0000BB">False&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">Tuong&nbsp;ung&nbsp;ban&nbsp;da&nbsp;nhan&nbsp;nut &nbsp; &nbsp;No</span><span style="color: #007700">/</span><span style="color: #0000BB">Cancel<br /></span><span style="color: #007700">Public&nbsp;Function&nbsp;</span><span style="color: #0000BB">GoiThongbao</span><span style="color: #007700">(</span><span style="color: #0000BB">SoCanGoi&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">Long</span><span style="color: #007700">)&nbsp;As&nbsp;</span><span style="color: #0000BB">Boolean<br />On&nbsp;Error&nbsp;</span><span style="color: #007700">GoTo&nbsp;</span><span style="color: #0000BB">Loi<br /> &nbsp; &nbsp;Dim&nbsp;cls&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">clsThongbao<br /> &nbsp; &nbsp;Set&nbsp;cls&nbsp;</span><span style="color: #007700">=&nbsp;New&nbsp;</span><span style="color: #0000BB">clsThongbao<br /> &nbsp; &nbsp;With&nbsp;cls<br /> &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #007700">.</span><span style="color: #0000BB">SoTT&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">SoCanGoi<br /> &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #007700">.</span><span style="color: #0000BB">MoFormThongbao<br /> &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #007700">Do&nbsp;While&nbsp;</span><span style="color: #0000BB">KiemTraFormDangMo</span><span style="color: #007700">(</span><span style="color: #0000BB">acForm</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"frmThongbao"</span><span style="color: #007700">)<br /></span><span style="color: #0000BB"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DoEvents<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Sleep&nbsp;100<br /> &nbsp; &nbsp; &nbsp; &nbsp;Loop<br /> &nbsp; &nbsp;End&nbsp;With<br /> &nbsp; &nbsp;<br /> &nbsp; &nbsp;Set&nbsp;cls&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Nothing<br /> &nbsp; &nbsp;GoiThongbao&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">TraLoi<br />Exit_Loi</span><span style="color: #007700">:<br /></span><span style="color: #0000BB"> &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #007700">Exit&nbsp;Function<br /></span><span style="color: #0000BB">Loi</span><span style="color: #007700">:</span><span style="color: #0000BB"> &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #DD0000">'&nbsp;Khi&nbsp;cac&nbsp;Thu&nbsp;tuc&nbsp;loi&nbsp;se&nbsp;nhay&nbsp;den&nbsp;dong&nbsp;duoi&nbsp;day<br /> &nbsp; &nbsp; &nbsp; &nbsp;GoiThongbao&nbsp;6<br /> &nbsp; &nbsp; &nbsp; &nbsp;GoiThongbao&nbsp;=&nbsp;False<br /> &nbsp; &nbsp; &nbsp; &nbsp;Resume&nbsp;Exit_Loi &nbsp; &nbsp; &nbsp;'&nbsp;</span><span style="color: #0000BB">Chay&nbsp;nguoc&nbsp;len&nbsp;dong&nbsp;Exit_Loi</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">va&nbsp;thoat<br />End&nbsp;</span><span style="color: #007700">Function<br /><br /></span><span style="color: #DD0000">'Kiem&nbsp;tra&nbsp;doi&nbsp;tuong&nbsp;dang&nbsp;dong&nbsp;hay&nbsp;mo<br />Function&nbsp;KiemTraFormDangMo(KieuDoiTuong&nbsp;As&nbsp;Integer,&nbsp;TenFormCanKiemTra&nbsp;As&nbsp;String)&nbsp;As&nbsp;Boolean<br />Dim&nbsp;i&nbsp;As&nbsp;Integer<br /> &nbsp; &nbsp;i&nbsp;=&nbsp;SysCmd(acSysCmdGetObjectState,&nbsp;KieuDoiTuong,&nbsp;TenFormCanKiemTra)<br /> &nbsp; &nbsp;KiemTraFormDangMo&nbsp;=&nbsp;i&nbsp;And&nbsp;acObjStateOpen<br />End&nbsp;Function&nbsp;<br /></span></code></div></div></div><br />
Để lại Email trong 10 ngày sẽ gửi Demo nhé!<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://thuthuataccess.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=857" target="_blank" title="">DemoTBForm - 8.zip</a> (Kích cỡ: 142.02 KB / Tải về: 41)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Chức năng: Hiển thị tiếng việt; Chỉnh màu sắc; Chỉnh Font chữ, cỡ chữ; Nút nào hiện thông qua table [tblThongbao]<br />
<br />
Cú pháp: <br />
- Chỉ gọi thôi: GoiThongbao SoTTCuaThongbao<br />
- Gọi để lấy câu trả lời Yes/No; Ok/Cancel: GoiThongbao( SoTTCuaThongbao); Trả về 1 nếu Đồng y<br />
<br />
<br />
* Khuya quá lười viết post video giới thiệu chi tiết<br />
<div style="text-align: center;" class="mycode_align"><iframe width="560" height="315" src="//www.youtube-nocookie.com/embed/5qR-b5wwZag" frameborder="0" allowfullscreen="true"></iframe></div>
<br />
Code:<br />
<div class="codeblock phpcodeblock"><div class="title">Mã PHP:</div><div class="body"><div dir="ltr"><code><span style="color: #DD0000">'&nbsp;--------------------------------------------------------------------------------------------------------<br />'&nbsp;</span><span style="color: #0000BB">Ten&nbsp;Modules</span><span style="color: #007700">/Class:</span><span style="color: #0000BB"> &nbsp; &nbsp;modThongbao<br /></span><span style="color: #DD0000">'&nbsp;Ten&nbsp;ham/thu&nbsp;tuc &nbsp; &nbsp;: &nbsp;GoiThongbao<br />'&nbsp;</span><span style="color: #0000BB">Tao&nbsp;tren&nbsp;may&nbsp;PC &nbsp; &nbsp;</span><span style="color: #007700">:</span><span style="color: #0000BB"> &nbsp;HENDAN<br /></span><span style="color: #DD0000">'&nbsp;Author/&nbsp;Tac&nbsp;gia &nbsp; &nbsp;: &nbsp;maidinhdan@gmail.com&nbsp;, &nbsp;Ngay,&nbsp;gio&nbsp;tao:&nbsp;26/03/2021&nbsp;4:01:39&nbsp;PM<br />'&nbsp;</span><span style="color: #0000BB">Parameters</span><span style="color: #007700">/</span><span style="color: #0000BB">Tham&nbsp;so&nbsp;</span><span style="color: #007700">:<br /></span><span style="color: #DD0000">'&nbsp;Cu&nbsp;phap/&nbsp;Purpose &nbsp;:<br />'&nbsp;</span><span style="color: #0000BB">Pham&nbsp;vi&nbsp;ap&nbsp;dung &nbsp; &nbsp;</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">Goi&nbsp;thong&nbsp;bao&nbsp;bang&nbsp;Form<br /></span><span style="color: #DD0000">'&nbsp;--------------------------------------------------------------------------------------------------------<br />'</span><span style="color: #0000BB">Gia&nbsp;tri&nbsp;tra&nbsp;ve&nbsp;cua&nbsp;ham&nbsp;Goithongbao&nbsp;la</span><span style="color: #007700">:<br /></span><span style="color: #DD0000">'True&nbsp;=&gt;&nbsp;Tuong&nbsp;ung&nbsp;ban&nbsp;da&nbsp;nhan&nbsp;nut &nbsp; &nbsp;Ok/Yes<br />'</span><span style="color: #0000BB">False&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">Tuong&nbsp;ung&nbsp;ban&nbsp;da&nbsp;nhan&nbsp;nut &nbsp; &nbsp;No</span><span style="color: #007700">/</span><span style="color: #0000BB">Cancel<br /></span><span style="color: #007700">Public&nbsp;Function&nbsp;</span><span style="color: #0000BB">GoiThongbao</span><span style="color: #007700">(</span><span style="color: #0000BB">SoCanGoi&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">Long</span><span style="color: #007700">)&nbsp;As&nbsp;</span><span style="color: #0000BB">Boolean<br />On&nbsp;Error&nbsp;</span><span style="color: #007700">GoTo&nbsp;</span><span style="color: #0000BB">Loi<br /> &nbsp; &nbsp;Dim&nbsp;cls&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">clsThongbao<br /> &nbsp; &nbsp;Set&nbsp;cls&nbsp;</span><span style="color: #007700">=&nbsp;New&nbsp;</span><span style="color: #0000BB">clsThongbao<br /> &nbsp; &nbsp;With&nbsp;cls<br /> &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #007700">.</span><span style="color: #0000BB">SoTT&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">SoCanGoi<br /> &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #007700">.</span><span style="color: #0000BB">MoFormThongbao<br /> &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #007700">Do&nbsp;While&nbsp;</span><span style="color: #0000BB">KiemTraFormDangMo</span><span style="color: #007700">(</span><span style="color: #0000BB">acForm</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"frmThongbao"</span><span style="color: #007700">)<br /></span><span style="color: #0000BB"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DoEvents<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Sleep&nbsp;100<br /> &nbsp; &nbsp; &nbsp; &nbsp;Loop<br /> &nbsp; &nbsp;End&nbsp;With<br /> &nbsp; &nbsp;<br /> &nbsp; &nbsp;Set&nbsp;cls&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Nothing<br /> &nbsp; &nbsp;GoiThongbao&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">TraLoi<br />Exit_Loi</span><span style="color: #007700">:<br /></span><span style="color: #0000BB"> &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #007700">Exit&nbsp;Function<br /></span><span style="color: #0000BB">Loi</span><span style="color: #007700">:</span><span style="color: #0000BB"> &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #DD0000">'&nbsp;Khi&nbsp;cac&nbsp;Thu&nbsp;tuc&nbsp;loi&nbsp;se&nbsp;nhay&nbsp;den&nbsp;dong&nbsp;duoi&nbsp;day<br /> &nbsp; &nbsp; &nbsp; &nbsp;GoiThongbao&nbsp;6<br /> &nbsp; &nbsp; &nbsp; &nbsp;GoiThongbao&nbsp;=&nbsp;False<br /> &nbsp; &nbsp; &nbsp; &nbsp;Resume&nbsp;Exit_Loi &nbsp; &nbsp; &nbsp;'&nbsp;</span><span style="color: #0000BB">Chay&nbsp;nguoc&nbsp;len&nbsp;dong&nbsp;Exit_Loi</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">va&nbsp;thoat<br />End&nbsp;</span><span style="color: #007700">Function<br /><br /></span><span style="color: #DD0000">'Kiem&nbsp;tra&nbsp;doi&nbsp;tuong&nbsp;dang&nbsp;dong&nbsp;hay&nbsp;mo<br />Function&nbsp;KiemTraFormDangMo(KieuDoiTuong&nbsp;As&nbsp;Integer,&nbsp;TenFormCanKiemTra&nbsp;As&nbsp;String)&nbsp;As&nbsp;Boolean<br />Dim&nbsp;i&nbsp;As&nbsp;Integer<br /> &nbsp; &nbsp;i&nbsp;=&nbsp;SysCmd(acSysCmdGetObjectState,&nbsp;KieuDoiTuong,&nbsp;TenFormCanKiemTra)<br /> &nbsp; &nbsp;KiemTraFormDangMo&nbsp;=&nbsp;i&nbsp;And&nbsp;acObjStateOpen<br />End&nbsp;Function&nbsp;<br /></span></code></div></div></div><br />
Để lại Email trong 10 ngày sẽ gửi Demo nhé!<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://thuthuataccess.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=857" target="_blank" title="">DemoTBForm - 8.zip</a> (Kích cỡ: 142.02 KB / Tải về: 41)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Không cho gõ tiếng việt có dấu vào textbox]]></title>
			<link>https://thuthuataccess.com/forum/thread-11840.html</link>
			<pubDate>Wed, 24 Mar 2021 09:53:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://thuthuataccess.com/forum/member.php?action=profile&uid=16122">mrsiro</a>]]></dc:creator>
			<guid isPermaLink="false">https://thuthuataccess.com/forum/thread-11840.html</guid>
			<description><![CDATA[Chào mọi người, mình đang tìm giải pháp cho việc cấm người dùng gõ tiếng việt có dấu vào ô textbox. Đa số các giải pháp mình tìm được đều là không cho gõ khi phát hiện đó là tiếng việt có dấu. Ví dụ: Ô textbox đang có dữ liệu là CA gõ tiếp phím F thì không cho phép, nhưng điều mình cần là vẫn hiển thị chữ F, khi đó dữ liệu ô textbox sẽ là CAF.<br />
<br />
Mình đang áp dụng việc này vào nghiệp vụ scan mã vạch. Khi mình scan 1 mặt hàng ví dụ CAFE, thì scan nó ra CÀE (telex), hoặc mặt hàng là A1BC thì nó lại thành ÁBC (vni), người dùng phải tắt unikey đi rất là bất tiện và không chuyên nghiệp.<br />
<br />
Ai có giải pháp thì giúp mình nhé.]]></description>
			<content:encoded><![CDATA[Chào mọi người, mình đang tìm giải pháp cho việc cấm người dùng gõ tiếng việt có dấu vào ô textbox. Đa số các giải pháp mình tìm được đều là không cho gõ khi phát hiện đó là tiếng việt có dấu. Ví dụ: Ô textbox đang có dữ liệu là CA gõ tiếp phím F thì không cho phép, nhưng điều mình cần là vẫn hiển thị chữ F, khi đó dữ liệu ô textbox sẽ là CAF.<br />
<br />
Mình đang áp dụng việc này vào nghiệp vụ scan mã vạch. Khi mình scan 1 mặt hàng ví dụ CAFE, thì scan nó ra CÀE (telex), hoặc mặt hàng là A1BC thì nó lại thành ÁBC (vni), người dùng phải tắt unikey đi rất là bất tiện và không chuyên nghiệp.<br />
<br />
Ai có giải pháp thì giúp mình nhé.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[Demo P2] Link Table nhiều File khác nhau (Hàm ngắn gọn)]]></title>
			<link>https://thuthuataccess.com/forum/thread-11837.html</link>
			<pubDate>Tue, 23 Mar 2021 09:43:13 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://thuthuataccess.com/forum/member.php?action=profile&uid=1091">maidinhdan</a>]]></dc:creator>
			<guid isPermaLink="false">https://thuthuataccess.com/forum/thread-11837.html</guid>
			<description><![CDATA[Hôm trước có giới thiệu <a href="https://thuthuataccess.com/forum/thread-11189.html" target="_blank" rel="noopener" class="mycode_url"><span style="color: blue;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">[Thủ Thuật]</span></span> [Phần 1]Demo Link Table nhiều File khác nhau</a> <br />
<br />
<br />
<br />
Demo này Code gọi phải nhớ tên table hơi phiền phức; nhất là ứng dụng có nhiều table như của anh TranThanhAn1962<br />
<br />
<br />
<br />
<span style="color: #008E02;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">Ưu điểm: Code gọi ngắn gọn</span></span><br />
<br />
<div class="codeblock phpcodeblock"><div class="title">Mã PHP:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">Ham_TaoLinkAllTable</span><span style="color: #007700">(</span><span style="color: #0000BB">DuongDanFile</span><span style="color: #007700">,[</span><span style="color: #0000BB">Mat&nbsp;khau&nbsp;co&nbsp;the&nbsp;bo&nbsp;trong&nbsp;neu&nbsp;file&nbsp;khong&nbsp;co&nbsp;mat&nbsp;khau</span><span style="color: #007700">])<br /><br />=&gt;<br /><br /></span><span style="color: #0000BB"> &nbsp; &nbsp;Ham_TaoLinkAllTable&nbsp;Me</span><span style="color: #007700">.</span><span style="color: #0000BB">txtlinkfile1</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Me</span><span style="color: #007700">.</span><span style="color: #0000BB">txtpass &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #DD0000">'File&nbsp;co&nbsp;Pass<br /><br /> &nbsp; &nbsp;Ham_TaoLinkAllTable&nbsp;Me.txtlinkfile2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'&nbsp;</span><span style="color: #0000BB">File&nbsp;khong&nbsp;Pass</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">chi&nbsp;can&nbsp;dien&nbsp;Link&nbsp;File&nbsp;la&nbsp;dc&nbsp;<br /></span></code></div></div></div><br />
<br />
<br />
<span style="color: #008E02;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">Khả năng ứng dụng:</span></span><br />
<br />
- Áp cho tất cả phiên bản Access *.mdb hoặc *.accdb, có Pass hay không có pass cũng vậy<br />
<br />
- Thích hợp Link table số lượng lớn và với nhiều File Access khác nhau cùng 1 lúc<br />
<br />
- Trong ứng dụng có đính kèm hàm xóa tất cả table; hàm chọn File; hàm Kiểm tra sự tồn tại table để các bạn test<br />
<br />
<br />
<br />
* Hình minh họa:<br />
<br />
<img src="https://sites.google.com/site/postdumdemo/home/hinh/demoHinh_LinkNhieuTable_Phan2.png" loading="lazy"  alt="[Hình: demoHinh_LinkNhieuTable_Phan2.png]" class="mycode_img" /><br />
<br />
<br />
Code:<br />
<div class="codeblock phpcodeblock"><div class="title">Mã PHP:</div><div class="body"><div dir="ltr"><code><span style="color: #DD0000">'&nbsp;--------------------------------------------------------------------------------------------------------<br />'&nbsp;</span><span style="color: #0000BB">Ten&nbsp;Modules</span><span style="color: #007700">/Class:</span><span style="color: #0000BB"> &nbsp; &nbsp;modLinkTable<br /></span><span style="color: #DD0000">'&nbsp;Ten&nbsp;ham/thu&nbsp;tuc &nbsp; &nbsp;: &nbsp;Ham_TaoLinkAllTable<br />'&nbsp;</span><span style="color: #0000BB">Tao&nbsp;tren&nbsp;may&nbsp;PC &nbsp; &nbsp;</span><span style="color: #007700">:</span><span style="color: #0000BB"> &nbsp;HENDAN<br /></span><span style="color: #DD0000">'&nbsp;Author/&nbsp;Tac&nbsp;gia &nbsp; &nbsp;: &nbsp;maidinhdan@gmail.com&nbsp;, &nbsp;Ngay,&nbsp;gio&nbsp;tao:&nbsp;23/03/2021&nbsp;4:19:39&nbsp;PM<br />'&nbsp;</span><span style="color: #0000BB">Parameters</span><span style="color: #007700">/</span><span style="color: #0000BB">Tham&nbsp;so&nbsp;</span><span style="color: #007700">:<br /></span><span style="color: #DD0000">'&nbsp;Cu&nbsp;phap/&nbsp;Purpose &nbsp;:&nbsp;Ham_TaoLinkAllTable(DuongDanFile,[Mat&nbsp;khau&nbsp;co&nbsp;the&nbsp;bo&nbsp;trong&nbsp;neu&nbsp;file&nbsp;khong&nbsp;co&nbsp;mat&nbsp;khau])<br />'&nbsp;</span><span style="color: #0000BB">Pham&nbsp;vi&nbsp;ap&nbsp;dung &nbsp; &nbsp;</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">Tao&nbsp;LinkTable&nbsp;nhanh&nbsp;voi&nbsp;nhieu&nbsp;File&nbsp;Access&nbsp;khac&nbsp;nhau&nbsp;va&nbsp;co&nbsp;so&nbsp;luong&nbsp;table&nbsp;lon<br /></span><span style="color: #DD0000">'&nbsp;--------------------------------------------------------------------------------------------------------<br />Public&nbsp;Function&nbsp;Ham_TaoLinkAllTable(DuongDanFile&nbsp;As&nbsp;String,&nbsp;Optional&nbsp;MatkhauFile&nbsp;As&nbsp;String)&nbsp;As&nbsp;Boolean<br /> &nbsp; &nbsp;On&nbsp;Error&nbsp;GoTo&nbsp;Loi<br /> &nbsp; &nbsp; &nbsp; &nbsp;'</span><span style="color: #0000BB">Chen&nbsp;cac&nbsp;Thu&nbsp;tuc&nbsp;cua&nbsp;ban&nbsp;o&nbsp;day<br /> &nbsp; &nbsp;Dim&nbsp;dbHienHanh&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">DAO</span><span style="color: #007700">.</span><span style="color: #0000BB">Database</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">i&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">Integer<br /> &nbsp; &nbsp;Set&nbsp;dbHienHanh&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">CurrentDb<br /> &nbsp; &nbsp;Dim&nbsp;TableHienHanh&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">String<br /> &nbsp; &nbsp;</span><span style="color: #DD0000">'Duyet&nbsp;lay&nbsp;tat&nbsp;ca&nbsp;table&nbsp;Access&nbsp;hien&nbsp;hanh,&nbsp;bao&nbsp;gom&nbsp;ca&nbsp;cac&nbsp;table&nbsp;dang&nbsp;link,&nbsp;ngoai&nbsp;tru&nbsp;table&nbsp;he&nbsp;thong<br /> &nbsp; &nbsp;For&nbsp;i&nbsp;=&nbsp;0&nbsp;To&nbsp;dbHienHanh.TableDefs.Count&nbsp;-&nbsp;1<br /> &nbsp; &nbsp; &nbsp; &nbsp;If&nbsp;Left(dbHienHanh.TableDefs(i).Name,&nbsp;4)&nbsp;&lt;&gt;&nbsp;"MSys"&nbsp;Then<br /> &nbsp; &nbsp; &nbsp; &nbsp;TableHienHanh&nbsp;=&nbsp;dbHienHanh.TableDefs(i).Name<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Debug.Print&nbsp;"HienHanh:&nbsp;___________",&nbsp;TableHienHanh<br /> &nbsp; &nbsp; &nbsp; &nbsp;End&nbsp;If<br /> &nbsp; &nbsp;Next&nbsp;i<br /> &nbsp; &nbsp;'&nbsp;</span><span style="color: #0000BB">Khoi&nbsp;tao&nbsp;mot&nbsp;ket&nbsp;noi&nbsp;den&nbsp;Link&nbsp;file&nbsp;chi&nbsp;dinh</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">cac&nbsp;dong&nbsp;mau&nbsp;xanh&nbsp;la&nbsp;cay&nbsp;de&nbsp;Admin&nbsp;Test&nbsp;thoi</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">khi&nbsp;dung&nbsp;hay&nbsp;bo&nbsp;di<br /> &nbsp; &nbsp;Dim&nbsp;dbKhac&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">DAO</span><span style="color: #007700">.</span><span style="color: #0000BB">Database &nbsp;</span><span style="color: #DD0000">',&nbsp;i&nbsp;As&nbsp;Integer<br />'</span><span style="color: #0000BB"> &nbsp; &nbsp;Dim&nbsp;DuongDanFile&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">String</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">MatkhauFile&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">String<br /> &nbsp; &nbsp;Dim&nbsp;tdf&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">TableDef<br /></span><span style="color: #DD0000">' &nbsp; &nbsp;DuongDanFile&nbsp;=&nbsp;CurrentProject.Path&nbsp;&amp;&nbsp;"&#092;DataTest.mdb"<br />'</span><span style="color: #0000BB"> &nbsp; &nbsp;MatkhauFile&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"111444"<br />' &nbsp; &nbsp;DuongDanFile&nbsp;=&nbsp;CurrentProject.path&nbsp;&amp;&nbsp;"&#092;TaoFileMDB.mdb"<br />'</span><span style="color: #0000BB"> &nbsp; &nbsp;MatkhauFile&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">""<br /></span><span style="color: #0000BB"> &nbsp; &nbsp;i&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0 &nbsp;</span><span style="color: #DD0000">'Set&nbsp;bien&nbsp;i&nbsp;lai&nbsp;tu&nbsp;dau<br /> &nbsp; &nbsp;Set&nbsp;dbKhac&nbsp;=&nbsp;DBEngine.Workspaces(0).OpenDatabase(DuongDanFile,&nbsp;False,&nbsp;False,&nbsp;"MS&nbsp;Access;PWD="&nbsp;&amp;&nbsp;MatkhauFile)<br /> &nbsp; &nbsp;Dim&nbsp;TableKhac&nbsp;As&nbsp;String<br /> &nbsp; &nbsp;<br /> &nbsp; &nbsp;''Duyet&nbsp;lay&nbsp;tat&nbsp;ca&nbsp;table&nbsp;Access&nbsp;theo&nbsp;Link&nbsp;file&nbsp;chi&nbsp;dinh,&nbsp;ngoai&nbsp;tru&nbsp;table&nbsp;he&nbsp;thong<br /> &nbsp; &nbsp;For&nbsp;i&nbsp;=&nbsp;0&nbsp;To&nbsp;dbKhac.TableDefs.Count&nbsp;-&nbsp;1<br /> &nbsp; &nbsp; &nbsp; &nbsp;If&nbsp;Left(dbKhac.TableDefs(i).Name,&nbsp;4)&nbsp;&lt;&gt;&nbsp;"MSys"&nbsp;Then<br /> &nbsp; &nbsp; &nbsp; &nbsp;TableKhac&nbsp;=&nbsp;dbKhac.TableDefs(i).Name<br /> &nbsp; &nbsp; &nbsp; &nbsp;'</span><span style="color: #0000BB">So&nbsp;sanh&nbsp;Table&nbsp;trong&nbsp;File&nbsp;chi&nbsp;dinh&nbsp;co&nbsp;khac&nbsp;voi&nbsp;table&nbsp;hien&nbsp;hanh&nbsp;khong</span><span style="color: #007700">?&nbsp;</span><span style="color: #0000BB">Khac&nbsp;thi&nbsp;xoa</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">Khong&nbsp;thi&nbsp;bo&nbsp;qua<br /> &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #007700">If&nbsp;</span><span style="color: #0000BB">KiemtraTableTontai</span><span style="color: #007700">(</span><span style="color: #0000BB">TableKhac</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">Then &nbsp;</span><span style="color: #DD0000">'Hàm&nbsp;kiem&nbsp;tra&nbsp;table&nbsp;hien&nbsp;hanh&nbsp;co&nbsp;ton&nbsp;tai&nbsp;khong?<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CurrentDb.TableDefs.Delete&nbsp;TableKhac<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Debug.Print&nbsp;TableKhac&nbsp;&amp;&nbsp;"________Da&nbsp;Xoa&nbsp;va&nbsp;Se&nbsp;tao&nbsp;lai" &nbsp;'</span><span style="color: #0000BB">Thong&nbsp;bao&nbsp;Table&nbsp;dang&nbsp;ton&nbsp;tai</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">se&nbsp;xoa&nbsp;va&nbsp;se&nbsp;tien&nbsp;hanh&nbsp;lien&nbsp;ket&nbsp;lai<br /> &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #007700">Else<br /></span><span style="color: #0000BB"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Debug</span><span style="color: #007700">.Print&nbsp;</span><span style="color: #0000BB">TableKhac&nbsp;</span><span style="color: #007700">&amp;&nbsp;</span><span style="color: #DD0000">"________SeTaoMoi"</span><span style="color: #0000BB"> &nbsp;</span><span style="color: #DD0000">'Thong&nbsp;bao&nbsp;Table&nbsp;chua&nbsp;co,&nbsp;va&nbsp;se&nbsp;tien&nbsp;hanh&nbsp;lien&nbsp;ket&nbsp;lai<br /> &nbsp; &nbsp; &nbsp; &nbsp;End&nbsp;If<br /> &nbsp; &nbsp; &nbsp; &nbsp;'</span><span style="color: #0000BB">Tien&nbsp;hanh&nbsp;link&nbsp;lai&nbsp;lien&nbsp;ket&nbsp;voi&nbsp;table&nbsp;trong&nbsp;file&nbsp;chi&nbsp;dinh<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Set&nbsp;dbHienHanh&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">CurrentDb<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Set&nbsp;tdf&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">dbHienHanh</span><span style="color: #007700">.</span><span style="color: #0000BB">CreateTableDef</span><span style="color: #007700">(</span><span style="color: #0000BB">TableKhac</span><span style="color: #007700">)<br /></span><span style="color: #0000BB"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #DD0000">'Danh&nbsp;dau&nbsp;ket&nbsp;noi&nbsp;den&nbsp;file&nbsp;Access&nbsp;chi&nbsp;dinh&nbsp;de&nbsp;tien&nbsp;hanh&nbsp;link&nbsp;table<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;With&nbsp;tdf<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.Connect&nbsp;=&nbsp;"Ms&nbsp;Access;UID=Admin;PWD="&nbsp;&amp;&nbsp;MatkhauFile&nbsp;&amp;&nbsp;";DATABASE="&nbsp;&amp;&nbsp;DuongDanFile<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.SourceTableName&nbsp;=&nbsp;TableKhac<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;End&nbsp;With<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'&nbsp;</span><span style="color: #0000BB">ra&nbsp;lenh&nbsp;ket&nbsp;noi<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dbHienHanh</span><span style="color: #007700">.</span><span style="color: #0000BB">TableDefs</span><span style="color: #007700">.</span><span style="color: #0000BB">Append&nbsp;tdf<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp;End&nbsp;</span><span style="color: #007700">If<br /></span><span style="color: #0000BB"> &nbsp; &nbsp;Next&nbsp;i<br /> &nbsp; &nbsp;</span><span style="color: #DD0000">'Xoa&nbsp;bien&nbsp;khoi&nbsp;bo&nbsp;nho<br /> &nbsp; &nbsp; &nbsp;Set&nbsp;dbHienHanh&nbsp;=&nbsp;Nothing<br /> &nbsp; &nbsp; &nbsp;Set&nbsp;dbKhac&nbsp;=&nbsp;Nothing<br /> &nbsp; &nbsp; &nbsp;Ham_TaoLinkAllTable&nbsp;=&nbsp;True<br />'&nbsp;</span><span style="color: #0000BB">Doan&nbsp;xu&nbsp;ly&nbsp;cac&nbsp;loi<br />LoiExit</span><span style="color: #007700">:<br /></span><span style="color: #0000BB"> &nbsp; &nbsp;</span><span style="color: #007700">Exit&nbsp;Function<br /></span><span style="color: #0000BB">Loi</span><span style="color: #007700">:<br /></span><span style="color: #0000BB"> &nbsp; &nbsp;Ham_TaoLinkAllTable&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">False<br /> &nbsp; &nbsp;</span><span style="color: #007700">If&nbsp;</span><span style="color: #0000BB">Err&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">3110&nbsp;Then<br /> &nbsp; &nbsp; &nbsp; &nbsp;Resume&nbsp;LoiExit<br /> &nbsp; &nbsp;</span><span style="color: #007700">Else<br /></span><span style="color: #0000BB"> &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #007700">If&nbsp;</span><span style="color: #0000BB">Err&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">3011&nbsp;Then<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Resume&nbsp;Next<br /> &nbsp; &nbsp; &nbsp; &nbsp;End&nbsp;</span><span style="color: #007700">If<br /></span><span style="color: #0000BB"> &nbsp; &nbsp;End&nbsp;</span><span style="color: #007700">If<br /></span><span style="color: #0000BB">End&nbsp;</span><span style="color: #007700">Function&nbsp;<br /></span></code></div></div></div><br />
<br />
Ai cần xin để lại email<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://thuthuataccess.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=856" target="_blank" title="">Demo_LinkTableNhieuFileKhacNhau_PhanII(Khoa).zip</a> (Kích cỡ: 47.32 KB / Tải về: 59)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Hôm trước có giới thiệu <a href="https://thuthuataccess.com/forum/thread-11189.html" target="_blank" rel="noopener" class="mycode_url"><span style="color: blue;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">[Thủ Thuật]</span></span> [Phần 1]Demo Link Table nhiều File khác nhau</a> <br />
<br />
<br />
<br />
Demo này Code gọi phải nhớ tên table hơi phiền phức; nhất là ứng dụng có nhiều table như của anh TranThanhAn1962<br />
<br />
<br />
<br />
<span style="color: #008E02;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">Ưu điểm: Code gọi ngắn gọn</span></span><br />
<br />
<div class="codeblock phpcodeblock"><div class="title">Mã PHP:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">Ham_TaoLinkAllTable</span><span style="color: #007700">(</span><span style="color: #0000BB">DuongDanFile</span><span style="color: #007700">,[</span><span style="color: #0000BB">Mat&nbsp;khau&nbsp;co&nbsp;the&nbsp;bo&nbsp;trong&nbsp;neu&nbsp;file&nbsp;khong&nbsp;co&nbsp;mat&nbsp;khau</span><span style="color: #007700">])<br /><br />=&gt;<br /><br /></span><span style="color: #0000BB"> &nbsp; &nbsp;Ham_TaoLinkAllTable&nbsp;Me</span><span style="color: #007700">.</span><span style="color: #0000BB">txtlinkfile1</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Me</span><span style="color: #007700">.</span><span style="color: #0000BB">txtpass &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #DD0000">'File&nbsp;co&nbsp;Pass<br /><br /> &nbsp; &nbsp;Ham_TaoLinkAllTable&nbsp;Me.txtlinkfile2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'&nbsp;</span><span style="color: #0000BB">File&nbsp;khong&nbsp;Pass</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">chi&nbsp;can&nbsp;dien&nbsp;Link&nbsp;File&nbsp;la&nbsp;dc&nbsp;<br /></span></code></div></div></div><br />
<br />
<br />
<span style="color: #008E02;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">Khả năng ứng dụng:</span></span><br />
<br />
- Áp cho tất cả phiên bản Access *.mdb hoặc *.accdb, có Pass hay không có pass cũng vậy<br />
<br />
- Thích hợp Link table số lượng lớn và với nhiều File Access khác nhau cùng 1 lúc<br />
<br />
- Trong ứng dụng có đính kèm hàm xóa tất cả table; hàm chọn File; hàm Kiểm tra sự tồn tại table để các bạn test<br />
<br />
<br />
<br />
* Hình minh họa:<br />
<br />
<img src="https://sites.google.com/site/postdumdemo/home/hinh/demoHinh_LinkNhieuTable_Phan2.png" loading="lazy"  alt="[Hình: demoHinh_LinkNhieuTable_Phan2.png]" class="mycode_img" /><br />
<br />
<br />
Code:<br />
<div class="codeblock phpcodeblock"><div class="title">Mã PHP:</div><div class="body"><div dir="ltr"><code><span style="color: #DD0000">'&nbsp;--------------------------------------------------------------------------------------------------------<br />'&nbsp;</span><span style="color: #0000BB">Ten&nbsp;Modules</span><span style="color: #007700">/Class:</span><span style="color: #0000BB"> &nbsp; &nbsp;modLinkTable<br /></span><span style="color: #DD0000">'&nbsp;Ten&nbsp;ham/thu&nbsp;tuc &nbsp; &nbsp;: &nbsp;Ham_TaoLinkAllTable<br />'&nbsp;</span><span style="color: #0000BB">Tao&nbsp;tren&nbsp;may&nbsp;PC &nbsp; &nbsp;</span><span style="color: #007700">:</span><span style="color: #0000BB"> &nbsp;HENDAN<br /></span><span style="color: #DD0000">'&nbsp;Author/&nbsp;Tac&nbsp;gia &nbsp; &nbsp;: &nbsp;maidinhdan@gmail.com&nbsp;, &nbsp;Ngay,&nbsp;gio&nbsp;tao:&nbsp;23/03/2021&nbsp;4:19:39&nbsp;PM<br />'&nbsp;</span><span style="color: #0000BB">Parameters</span><span style="color: #007700">/</span><span style="color: #0000BB">Tham&nbsp;so&nbsp;</span><span style="color: #007700">:<br /></span><span style="color: #DD0000">'&nbsp;Cu&nbsp;phap/&nbsp;Purpose &nbsp;:&nbsp;Ham_TaoLinkAllTable(DuongDanFile,[Mat&nbsp;khau&nbsp;co&nbsp;the&nbsp;bo&nbsp;trong&nbsp;neu&nbsp;file&nbsp;khong&nbsp;co&nbsp;mat&nbsp;khau])<br />'&nbsp;</span><span style="color: #0000BB">Pham&nbsp;vi&nbsp;ap&nbsp;dung &nbsp; &nbsp;</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">Tao&nbsp;LinkTable&nbsp;nhanh&nbsp;voi&nbsp;nhieu&nbsp;File&nbsp;Access&nbsp;khac&nbsp;nhau&nbsp;va&nbsp;co&nbsp;so&nbsp;luong&nbsp;table&nbsp;lon<br /></span><span style="color: #DD0000">'&nbsp;--------------------------------------------------------------------------------------------------------<br />Public&nbsp;Function&nbsp;Ham_TaoLinkAllTable(DuongDanFile&nbsp;As&nbsp;String,&nbsp;Optional&nbsp;MatkhauFile&nbsp;As&nbsp;String)&nbsp;As&nbsp;Boolean<br /> &nbsp; &nbsp;On&nbsp;Error&nbsp;GoTo&nbsp;Loi<br /> &nbsp; &nbsp; &nbsp; &nbsp;'</span><span style="color: #0000BB">Chen&nbsp;cac&nbsp;Thu&nbsp;tuc&nbsp;cua&nbsp;ban&nbsp;o&nbsp;day<br /> &nbsp; &nbsp;Dim&nbsp;dbHienHanh&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">DAO</span><span style="color: #007700">.</span><span style="color: #0000BB">Database</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">i&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">Integer<br /> &nbsp; &nbsp;Set&nbsp;dbHienHanh&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">CurrentDb<br /> &nbsp; &nbsp;Dim&nbsp;TableHienHanh&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">String<br /> &nbsp; &nbsp;</span><span style="color: #DD0000">'Duyet&nbsp;lay&nbsp;tat&nbsp;ca&nbsp;table&nbsp;Access&nbsp;hien&nbsp;hanh,&nbsp;bao&nbsp;gom&nbsp;ca&nbsp;cac&nbsp;table&nbsp;dang&nbsp;link,&nbsp;ngoai&nbsp;tru&nbsp;table&nbsp;he&nbsp;thong<br /> &nbsp; &nbsp;For&nbsp;i&nbsp;=&nbsp;0&nbsp;To&nbsp;dbHienHanh.TableDefs.Count&nbsp;-&nbsp;1<br /> &nbsp; &nbsp; &nbsp; &nbsp;If&nbsp;Left(dbHienHanh.TableDefs(i).Name,&nbsp;4)&nbsp;&lt;&gt;&nbsp;"MSys"&nbsp;Then<br /> &nbsp; &nbsp; &nbsp; &nbsp;TableHienHanh&nbsp;=&nbsp;dbHienHanh.TableDefs(i).Name<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Debug.Print&nbsp;"HienHanh:&nbsp;___________",&nbsp;TableHienHanh<br /> &nbsp; &nbsp; &nbsp; &nbsp;End&nbsp;If<br /> &nbsp; &nbsp;Next&nbsp;i<br /> &nbsp; &nbsp;'&nbsp;</span><span style="color: #0000BB">Khoi&nbsp;tao&nbsp;mot&nbsp;ket&nbsp;noi&nbsp;den&nbsp;Link&nbsp;file&nbsp;chi&nbsp;dinh</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">cac&nbsp;dong&nbsp;mau&nbsp;xanh&nbsp;la&nbsp;cay&nbsp;de&nbsp;Admin&nbsp;Test&nbsp;thoi</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">khi&nbsp;dung&nbsp;hay&nbsp;bo&nbsp;di<br /> &nbsp; &nbsp;Dim&nbsp;dbKhac&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">DAO</span><span style="color: #007700">.</span><span style="color: #0000BB">Database &nbsp;</span><span style="color: #DD0000">',&nbsp;i&nbsp;As&nbsp;Integer<br />'</span><span style="color: #0000BB"> &nbsp; &nbsp;Dim&nbsp;DuongDanFile&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">String</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">MatkhauFile&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">String<br /> &nbsp; &nbsp;Dim&nbsp;tdf&nbsp;</span><span style="color: #007700">As&nbsp;</span><span style="color: #0000BB">TableDef<br /></span><span style="color: #DD0000">' &nbsp; &nbsp;DuongDanFile&nbsp;=&nbsp;CurrentProject.Path&nbsp;&amp;&nbsp;"&#092;DataTest.mdb"<br />'</span><span style="color: #0000BB"> &nbsp; &nbsp;MatkhauFile&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"111444"<br />' &nbsp; &nbsp;DuongDanFile&nbsp;=&nbsp;CurrentProject.path&nbsp;&amp;&nbsp;"&#092;TaoFileMDB.mdb"<br />'</span><span style="color: #0000BB"> &nbsp; &nbsp;MatkhauFile&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">""<br /></span><span style="color: #0000BB"> &nbsp; &nbsp;i&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0 &nbsp;</span><span style="color: #DD0000">'Set&nbsp;bien&nbsp;i&nbsp;lai&nbsp;tu&nbsp;dau<br /> &nbsp; &nbsp;Set&nbsp;dbKhac&nbsp;=&nbsp;DBEngine.Workspaces(0).OpenDatabase(DuongDanFile,&nbsp;False,&nbsp;False,&nbsp;"MS&nbsp;Access;PWD="&nbsp;&amp;&nbsp;MatkhauFile)<br /> &nbsp; &nbsp;Dim&nbsp;TableKhac&nbsp;As&nbsp;String<br /> &nbsp; &nbsp;<br /> &nbsp; &nbsp;''Duyet&nbsp;lay&nbsp;tat&nbsp;ca&nbsp;table&nbsp;Access&nbsp;theo&nbsp;Link&nbsp;file&nbsp;chi&nbsp;dinh,&nbsp;ngoai&nbsp;tru&nbsp;table&nbsp;he&nbsp;thong<br /> &nbsp; &nbsp;For&nbsp;i&nbsp;=&nbsp;0&nbsp;To&nbsp;dbKhac.TableDefs.Count&nbsp;-&nbsp;1<br /> &nbsp; &nbsp; &nbsp; &nbsp;If&nbsp;Left(dbKhac.TableDefs(i).Name,&nbsp;4)&nbsp;&lt;&gt;&nbsp;"MSys"&nbsp;Then<br /> &nbsp; &nbsp; &nbsp; &nbsp;TableKhac&nbsp;=&nbsp;dbKhac.TableDefs(i).Name<br /> &nbsp; &nbsp; &nbsp; &nbsp;'</span><span style="color: #0000BB">So&nbsp;sanh&nbsp;Table&nbsp;trong&nbsp;File&nbsp;chi&nbsp;dinh&nbsp;co&nbsp;khac&nbsp;voi&nbsp;table&nbsp;hien&nbsp;hanh&nbsp;khong</span><span style="color: #007700">?&nbsp;</span><span style="color: #0000BB">Khac&nbsp;thi&nbsp;xoa</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">Khong&nbsp;thi&nbsp;bo&nbsp;qua<br /> &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #007700">If&nbsp;</span><span style="color: #0000BB">KiemtraTableTontai</span><span style="color: #007700">(</span><span style="color: #0000BB">TableKhac</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">Then &nbsp;</span><span style="color: #DD0000">'Hàm&nbsp;kiem&nbsp;tra&nbsp;table&nbsp;hien&nbsp;hanh&nbsp;co&nbsp;ton&nbsp;tai&nbsp;khong?<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CurrentDb.TableDefs.Delete&nbsp;TableKhac<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Debug.Print&nbsp;TableKhac&nbsp;&amp;&nbsp;"________Da&nbsp;Xoa&nbsp;va&nbsp;Se&nbsp;tao&nbsp;lai" &nbsp;'</span><span style="color: #0000BB">Thong&nbsp;bao&nbsp;Table&nbsp;dang&nbsp;ton&nbsp;tai</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">se&nbsp;xoa&nbsp;va&nbsp;se&nbsp;tien&nbsp;hanh&nbsp;lien&nbsp;ket&nbsp;lai<br /> &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #007700">Else<br /></span><span style="color: #0000BB"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Debug</span><span style="color: #007700">.Print&nbsp;</span><span style="color: #0000BB">TableKhac&nbsp;</span><span style="color: #007700">&amp;&nbsp;</span><span style="color: #DD0000">"________SeTaoMoi"</span><span style="color: #0000BB"> &nbsp;</span><span style="color: #DD0000">'Thong&nbsp;bao&nbsp;Table&nbsp;chua&nbsp;co,&nbsp;va&nbsp;se&nbsp;tien&nbsp;hanh&nbsp;lien&nbsp;ket&nbsp;lai<br /> &nbsp; &nbsp; &nbsp; &nbsp;End&nbsp;If<br /> &nbsp; &nbsp; &nbsp; &nbsp;'</span><span style="color: #0000BB">Tien&nbsp;hanh&nbsp;link&nbsp;lai&nbsp;lien&nbsp;ket&nbsp;voi&nbsp;table&nbsp;trong&nbsp;file&nbsp;chi&nbsp;dinh<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Set&nbsp;dbHienHanh&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">CurrentDb<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Set&nbsp;tdf&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">dbHienHanh</span><span style="color: #007700">.</span><span style="color: #0000BB">CreateTableDef</span><span style="color: #007700">(</span><span style="color: #0000BB">TableKhac</span><span style="color: #007700">)<br /></span><span style="color: #0000BB"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #DD0000">'Danh&nbsp;dau&nbsp;ket&nbsp;noi&nbsp;den&nbsp;file&nbsp;Access&nbsp;chi&nbsp;dinh&nbsp;de&nbsp;tien&nbsp;hanh&nbsp;link&nbsp;table<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;With&nbsp;tdf<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.Connect&nbsp;=&nbsp;"Ms&nbsp;Access;UID=Admin;PWD="&nbsp;&amp;&nbsp;MatkhauFile&nbsp;&amp;&nbsp;";DATABASE="&nbsp;&amp;&nbsp;DuongDanFile<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.SourceTableName&nbsp;=&nbsp;TableKhac<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;End&nbsp;With<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'&nbsp;</span><span style="color: #0000BB">ra&nbsp;lenh&nbsp;ket&nbsp;noi<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dbHienHanh</span><span style="color: #007700">.</span><span style="color: #0000BB">TableDefs</span><span style="color: #007700">.</span><span style="color: #0000BB">Append&nbsp;tdf<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp;End&nbsp;</span><span style="color: #007700">If<br /></span><span style="color: #0000BB"> &nbsp; &nbsp;Next&nbsp;i<br /> &nbsp; &nbsp;</span><span style="color: #DD0000">'Xoa&nbsp;bien&nbsp;khoi&nbsp;bo&nbsp;nho<br /> &nbsp; &nbsp; &nbsp;Set&nbsp;dbHienHanh&nbsp;=&nbsp;Nothing<br /> &nbsp; &nbsp; &nbsp;Set&nbsp;dbKhac&nbsp;=&nbsp;Nothing<br /> &nbsp; &nbsp; &nbsp;Ham_TaoLinkAllTable&nbsp;=&nbsp;True<br />'&nbsp;</span><span style="color: #0000BB">Doan&nbsp;xu&nbsp;ly&nbsp;cac&nbsp;loi<br />LoiExit</span><span style="color: #007700">:<br /></span><span style="color: #0000BB"> &nbsp; &nbsp;</span><span style="color: #007700">Exit&nbsp;Function<br /></span><span style="color: #0000BB">Loi</span><span style="color: #007700">:<br /></span><span style="color: #0000BB"> &nbsp; &nbsp;Ham_TaoLinkAllTable&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">False<br /> &nbsp; &nbsp;</span><span style="color: #007700">If&nbsp;</span><span style="color: #0000BB">Err&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">3110&nbsp;Then<br /> &nbsp; &nbsp; &nbsp; &nbsp;Resume&nbsp;LoiExit<br /> &nbsp; &nbsp;</span><span style="color: #007700">Else<br /></span><span style="color: #0000BB"> &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #007700">If&nbsp;</span><span style="color: #0000BB">Err&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">3011&nbsp;Then<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Resume&nbsp;Next<br /> &nbsp; &nbsp; &nbsp; &nbsp;End&nbsp;</span><span style="color: #007700">If<br /></span><span style="color: #0000BB"> &nbsp; &nbsp;End&nbsp;</span><span style="color: #007700">If<br /></span><span style="color: #0000BB">End&nbsp;</span><span style="color: #007700">Function&nbsp;<br /></span></code></div></div></div><br />
<br />
Ai cần xin để lại email<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://thuthuataccess.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=856" target="_blank" title="">Demo_LinkTableNhieuFileKhacNhau_PhanII(Khoa).zip</a> (Kích cỡ: 47.32 KB / Tải về: 59)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Cách lấy các sản phẩm trong đơn hàng trước đó cho đơn hàng mới?]]></title>
			<link>https://thuthuataccess.com/forum/thread-11788.html</link>
			<pubDate>Sat, 02 Jan 2021 11:12:59 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://thuthuataccess.com/forum/member.php?action=profile&uid=20450">Hồ Bình</a>]]></dc:creator>
			<guid isPermaLink="false">https://thuthuataccess.com/forum/thread-11788.html</guid>
			<description><![CDATA[Anh chị cho em hỏi cách lấy lại đơn hàng cũ ngày 31/12/2020 cho đơn hành mới ngày 02/01/2020 (hôm nay) mình làm thế nào nhanh ạ?<br />
Em xin cảm ơn anh chị.<br />
Em gửi file demo.<br />
<a href="https://www.mediafire.com/file/okba75y8v3gduru/Demo.accdb/file" target="_blank" rel="noopener" class="mycode_url">https://www.mediafire.com/file/okba75y8v...accdb/file</a><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://thuthuataccess.com/forum/images/attachtypes/image.gif" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=850" target="_blank" title="">1.jpg</a> (Kích cỡ: 72.78 KB / Tải về: 25)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Anh chị cho em hỏi cách lấy lại đơn hàng cũ ngày 31/12/2020 cho đơn hành mới ngày 02/01/2020 (hôm nay) mình làm thế nào nhanh ạ?<br />
Em xin cảm ơn anh chị.<br />
Em gửi file demo.<br />
<a href="https://www.mediafire.com/file/okba75y8v3gduru/Demo.accdb/file" target="_blank" rel="noopener" class="mycode_url">https://www.mediafire.com/file/okba75y8v...accdb/file</a><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://thuthuataccess.com/forum/images/attachtypes/image.gif" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=850" target="_blank" title="">1.jpg</a> (Kích cỡ: 72.78 KB / Tải về: 25)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Làm thế nào để MsgBoxUni tùy chỉnh được chức năng của nút OK và Cancel?]]></title>
			<link>https://thuthuataccess.com/forum/thread-11772.html</link>
			<pubDate>Sat, 19 Dec 2020 05:09:30 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://thuthuataccess.com/forum/member.php?action=profile&uid=20450">Hồ Bình</a>]]></dc:creator>
			<guid isPermaLink="false">https://thuthuataccess.com/forum/thread-11772.html</guid>
			<description><![CDATA[Xin chào mọi người!<br />
Như câu hỏi trên tiêu đề, làm sao để có thể dùng được chức năng phím OK (để đóng form và mở 1 form khác) và Cancel trong MsgBoxUni giống như Msgbox mặc định của access ạ.<br />
Em có dùng Select case nhưng nó báo lỗi.<br />
Nhờ mọi người giúp đỡ. Xin cảm ơn.<br />
<a href="https://www.mediafire.com/file/osfzo2xxdp7e1zc/me_msgboxtv.accdb/file" target="_blank" rel="noopener" class="mycode_url">https://www.mediafire.com/file/osfzo2xxd...accdb/file</a>]]></description>
			<content:encoded><![CDATA[Xin chào mọi người!<br />
Như câu hỏi trên tiêu đề, làm sao để có thể dùng được chức năng phím OK (để đóng form và mở 1 form khác) và Cancel trong MsgBoxUni giống như Msgbox mặc định của access ạ.<br />
Em có dùng Select case nhưng nó báo lỗi.<br />
Nhờ mọi người giúp đỡ. Xin cảm ơn.<br />
<a href="https://www.mediafire.com/file/osfzo2xxdp7e1zc/me_msgboxtv.accdb/file" target="_blank" rel="noopener" class="mycode_url">https://www.mediafire.com/file/osfzo2xxd...accdb/file</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Tạo Textbox gộp các chuỗi?]]></title>
			<link>https://thuthuataccess.com/forum/thread-11755.html</link>
			<pubDate>Wed, 02 Dec 2020 14:55:30 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://thuthuataccess.com/forum/member.php?action=profile&uid=20450">Hồ Bình</a>]]></dc:creator>
			<guid isPermaLink="false">https://thuthuataccess.com/forum/thread-11755.html</guid>
			<description><![CDATA[Mình có 2 bảng với liên kết 1-nhiều: cụ thể 1 khách hàng có nhiều số điện thoại. Cho mình xin hỏi: Làm thế nào để tạo 1 textbox gộp các chuỗi số điện thoại lại với nhau như hình ạ? Xin cảm ơn.<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://thuthuataccess.com/forum/images/attachtypes/image.gif" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=845" target="_blank" title="">T1.jpg</a> (Kích cỡ: 18.91 KB / Tải về: 22)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://thuthuataccess.com/forum/images/attachtypes/image.gif" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=846" target="_blank" title="">T2.jpg</a> (Kích cỡ: 12.36 KB / Tải về: 16)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://thuthuataccess.com/forum/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=847" target="_blank" title="">T3.png</a> (Kích cỡ: 969 bytes / Tải về: 9)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Mình có 2 bảng với liên kết 1-nhiều: cụ thể 1 khách hàng có nhiều số điện thoại. Cho mình xin hỏi: Làm thế nào để tạo 1 textbox gộp các chuỗi số điện thoại lại với nhau như hình ạ? Xin cảm ơn.<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://thuthuataccess.com/forum/images/attachtypes/image.gif" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=845" target="_blank" title="">T1.jpg</a> (Kích cỡ: 18.91 KB / Tải về: 22)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://thuthuataccess.com/forum/images/attachtypes/image.gif" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=846" target="_blank" title="">T2.jpg</a> (Kích cỡ: 12.36 KB / Tải về: 16)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://thuthuataccess.com/forum/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=847" target="_blank" title="">T3.png</a> (Kích cỡ: 969 bytes / Tải về: 9)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[Demo Phần 3]-[Lịch năm]Điền ngày tháng bằng click chuột [No Calendar]]]></title>
			<link>https://thuthuataccess.com/forum/thread-11747.html</link>
			<pubDate>Sun, 22 Nov 2020 17:07:04 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://thuthuataccess.com/forum/member.php?action=profile&uid=1091">maidinhdan</a>]]></dc:creator>
			<guid isPermaLink="false">https://thuthuataccess.com/forum/thread-11747.html</guid>
			<description><![CDATA[Tiếp nối thủ thuật Điền ngày tháng bằng nút nhấn:<br />
Phần 1: <a href="http://thuthuataccess.com/forum/thread-8700.html" target="_blank" rel="noopener" class="mycode_url"><span style="color: blue;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">[Thủ Thuật]</span></span> Demo_Chọn ngày tháng bằng nút (No Calender Tiếng việt)</a><br />
Phần 2: <a href="https://thuthuataccess.com/forum/thread-9623.html" target="_blank" rel="noopener" class="mycode_url"><span style="color: blue;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">[Thủ Thuật]</span></span> [Shared Code- PhầnII]Chọn ngày tháng bằng click chuột [No Calendar]</a><br />
<br />
<br />
<span style="color: #008E02;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">* Và hôm nay xin giới thiệu Phần 3: gồm chức năng sau:</span></span><br />
1. Lịch nguyên một năm. ( khác với các phần trước chỉ có 1 tháng)<br />
2. Code rút gọn hơn với cú pháp giản đơn: Chèn code ở bất cứ sự kiện nào bạn thích và chèn cú pháp sau<br />
<div class="codeblock phpcodeblock"><div class="title">Mã PHP:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">LichVN&nbsp;Me</span><span style="color: #007700">.</span><span style="color: #0000BB">TenTextbox&nbsp;<br /></span></code></div></div></div>3. Nếu ô bạn gọi có ngày tháng Lịch sẽ tự động nhảy đến năm và ô ngày tháng của bạn.<br />
<span style="color: #D900A7;" class="mycode_color">4. Có thể Click Double trên Lịch để lấy nhanh ngày tháng</span><br />
<br />
<span style="color: #008E02;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">* Yêu cầu: khi chèn vào ứng dụng của bạn.</span></span><br />
1. Import <span style="color: #E82A1F;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">1</span></span> form: <span style="color: #E82A1F;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">frmLichVN </span></span>và <span style="color: #E82A1F;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">1</span></span> Module: <span style="color: #E82A1F;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">basLichVN</span></span><br />
2. Nhớ câu thần chú phía trên<br />
<br />
Hình minh họa<br />
<div style="text-align: center;" class="mycode_align"><img src="https://sites.google.com/site/postdumdemo/home/hinh/DemoHinhChonLichCaNam.png" loading="lazy"  alt="[Hình: DemoHinhChonLichCaNam.png]" class="mycode_img" /></div>
<br />
Demo đính kèm:<br />
<span style="color: #17B529;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">Nếu cần nghiên cứu học tập xin để lại Email</span></span><br />
<span style="font-weight: bold;" class="mycode_b"><span style="color: #FF30DC;" class="mycode_color">Thân mến</span></span><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://thuthuataccess.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=844" target="_blank" title="">Demo_ChonLichBangMotNutNhan_LichCaNam(Phan 3).zip</a> (Kích cỡ: 62.73 KB / Tải về: 38)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Tiếp nối thủ thuật Điền ngày tháng bằng nút nhấn:<br />
Phần 1: <a href="http://thuthuataccess.com/forum/thread-8700.html" target="_blank" rel="noopener" class="mycode_url"><span style="color: blue;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">[Thủ Thuật]</span></span> Demo_Chọn ngày tháng bằng nút (No Calender Tiếng việt)</a><br />
Phần 2: <a href="https://thuthuataccess.com/forum/thread-9623.html" target="_blank" rel="noopener" class="mycode_url"><span style="color: blue;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">[Thủ Thuật]</span></span> [Shared Code- PhầnII]Chọn ngày tháng bằng click chuột [No Calendar]</a><br />
<br />
<br />
<span style="color: #008E02;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">* Và hôm nay xin giới thiệu Phần 3: gồm chức năng sau:</span></span><br />
1. Lịch nguyên một năm. ( khác với các phần trước chỉ có 1 tháng)<br />
2. Code rút gọn hơn với cú pháp giản đơn: Chèn code ở bất cứ sự kiện nào bạn thích và chèn cú pháp sau<br />
<div class="codeblock phpcodeblock"><div class="title">Mã PHP:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">LichVN&nbsp;Me</span><span style="color: #007700">.</span><span style="color: #0000BB">TenTextbox&nbsp;<br /></span></code></div></div></div>3. Nếu ô bạn gọi có ngày tháng Lịch sẽ tự động nhảy đến năm và ô ngày tháng của bạn.<br />
<span style="color: #D900A7;" class="mycode_color">4. Có thể Click Double trên Lịch để lấy nhanh ngày tháng</span><br />
<br />
<span style="color: #008E02;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">* Yêu cầu: khi chèn vào ứng dụng của bạn.</span></span><br />
1. Import <span style="color: #E82A1F;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">1</span></span> form: <span style="color: #E82A1F;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">frmLichVN </span></span>và <span style="color: #E82A1F;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">1</span></span> Module: <span style="color: #E82A1F;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">basLichVN</span></span><br />
2. Nhớ câu thần chú phía trên<br />
<br />
Hình minh họa<br />
<div style="text-align: center;" class="mycode_align"><img src="https://sites.google.com/site/postdumdemo/home/hinh/DemoHinhChonLichCaNam.png" loading="lazy"  alt="[Hình: DemoHinhChonLichCaNam.png]" class="mycode_img" /></div>
<br />
Demo đính kèm:<br />
<span style="color: #17B529;" class="mycode_color"><span style="font-weight: bold;" class="mycode_b">Nếu cần nghiên cứu học tập xin để lại Email</span></span><br />
<span style="font-weight: bold;" class="mycode_b"><span style="color: #FF30DC;" class="mycode_color">Thân mến</span></span><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://thuthuataccess.com/forum/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=844" target="_blank" title="">Demo_ChonLichBangMotNutNhan_LichCaNam(Phan 3).zip</a> (Kích cỡ: 62.73 KB / Tải về: 38)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
	</channel>
</rss>