English 中文(简体)
参数
原标题:Parameter Query
  • 时间:2011-01-19 16:55:53
  •  标签:
  • ms-access

我是一家小型旅馆预订数据库。 当客人检查时,他们拿到一张Parking Lot出入证(编号),需要回去检查,以避免收取额外费用。 以下询问使用户能够进入Parking Lot出入证号码。

SELECT AccessKey.AccessKeyID, AccessKey.Distributed
FROM AccessKey
WHERE (((AccessKey.Distributed)=false));

我的表格是带卡号码的 com子。 在新来宾检查时,我需要帮助 co子的编码,只显示可用卡号码。

例如,客人要检查并拿到第3号卡,对下一批商来说, com子将不展示发放的第3号卡。

然后,我创建了一个检查箱,以标示在客人停留结束时归还卡。 一旦检查该盒子,卡号就会回到 com子。

问题回答

某些事情并不明确,就像选择接触钥匙一样。 它是在 com箱中选取的,还是有 but子在形式上可以节省所有数据?

无论如何,你制造的 yourself是一个良好的开端。 如果你制造一个 com子,你可以把这一 que子添加到 com子的浏览器上。 骑手。 然而,在问询中分配并不真正需要,因为你只能选择那些有虚假价值的人。 确保这个 com子的捆绑一栏被设定为1,因为这是你使用的关键数字。

此时此事件将拯救骑手的状态。 分发(无论它是纽芬兰的浮标活动还是 com子的更新活动),你可以写出以下一些法典:

CurrentDb.Execute "UPDATE AccessKey SET AccessKey.Distributed = true WHERE AccessKey.AccessKeyID = " & Me.ComboBoxName.Value
  Me.ComboBoxName.Requery

最后一行将确保 com箱的更新,而选定的钥匙将不再出现在清单中。

现在,就你的问题的第二部分而言,这还有很多不明确之处。 这种检查箱的形式相同,或与客户数据(如关键号码)有关的客户核对表。 无论如何,插笔会澄清了你们的第二部分。





相关问题
Handling no results for docmd.applyfilter

I have an Access app where I use search functionality. I have a TextBox and a Search Button on the form, and it does a wildcard search of whatever the user enters in the TextBox, and displays the ...

access query to filter and combine count

i have two access tables tableA num count 1 7 2 8 3 9 4 9 5 13 6 6 tableB num count 0 1 1 14 2 12 3 5 4 5 5 11 6 5 how can i create an access query that ...

How to show File Picker dialog in Access 2007?

I want to show a dialog where the user can pick a file, click OK, and then the path to the file will be saved in the database. I have just one problem, I can t figure out how tho show the dialog ...

MS Access: list macro from VBA

I have to deal with a few macros (not VBA) in an inherited Access application. In order to document them, I would like to print or list the actions in those macros, but I am very dissatisfied by ...

Returning row number on MS Access

I have 4 tables, from which i select data with help of joins in select query...I want a serial no.(row number) per record as they are fetched. first fetched record should be 1, next 2 and so on... In ...

热门标签