如何搜索记录并在Ms Access中显示结果

时间:2014-06-15 09:55:04

标签: access-vba

我准备了一个数据库并尝试使用Ms Access表单搜索记录。

我需要使用customer_No搜索数据,并在文本框中显示结果的其余部分。

1 个答案:

答案 0 :(得分:0)

我假设您使用的是SQL语句,customer_Noint列,因此在customer_No上搜索时请使用此查询

SELECT 
    yourcolumn1, yourcolumn2,..... 
FROM
    yourtableName 
WHERE
    customer_No = 5

此查询将返回customer_No 5的记录,如果customer_No是文本列,则使用customer_No ='5'代替customer_No = 5