[英]listbox does not update with new records added to table in access
我的搜索表單上有一個列表框,可讓我使用文本條件搜索“ Patients
”表,以使用firstname
, lastname
, ID
和其他othernames
。 搜索查詢的SQL:
SELECT
Patients.[Patient ID],
Patients.[First Name],
Patients.[Last Name],
Patients.[Other Names],
Patients.Gender
FROM Patients
WHERE (((Patients.[Patient ID]) Like "*" & [Forms]![SearchTab]![txtI] & "*")
AND ((Patients.[Last Name]) Like "*" & [Forms]![SearchTab]![txtL] & "*")
AND ((Patients.[Other Names]) Like "*" & [Forms]![SearchTab]![txtO] & "*")
AND ((Patients.[First Name]) Like "*" & [Forms]![SearchTab]![txtF] & "*"))
ORDER BY
Patients.[Last Name],
Patients.[First Name];
搜索工作正常,但是有另一種形式的數據輸入到Patients
表中,並且搜索表單未找到任何新條目,但是我可以在表中看到它們。
任何人都可以闡明這個問題嗎?
嘗試替換以下內容: [Forms]![SearchTab]![txtI]
與此一起: Nz([Forms]![SearchTab]![txtI])
對於所有四個文本搜索框。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.