问题描述
大家好,
我的数据库用户,工作和预订中有三个表。它是一个工作预订系统,因此用户登录并对工作进行预订。我试图按一下按钮来显示错误信息,如果他们试图预订但已经有15个或更多。
下面是我到目前为止的代码任何人都可以帮助我让它工作或指向正确的方向。
Hi all,
There are three tables in my database user, job and booking. It?s a job booking system so users login and make a booking against a job. I?m trying to get a button to display an error message if they try to make a booking but already have made 15 or more.
Below is the code I?ve got so far can anyone help me to get it working or point me in the right direction.
推荐答案
i thinh在上面的Qry中没有使用count(*)
i thinh in the above Qry there is no use of count(*)
它只会选择一条记录。如果你给了
lCount = rs.RecordCount
那么价值将是1
你可以这样使用
lCount = rs.field(" numberOfBookings")
it will select only one record. if you give
lCount = rs.RecordCount
then the value will be 1
beter you can use like this
lCount = rs.field("numberOfBookings")
这篇关于计算记录以显示错误消息。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!