显示正确的记录和PK。表单上的代码调用时使用的第一条记录 [英] Correct record and PK displayed. First record used when code on form called.

查看:52
本文介绍了显示正确的记录和PK。表单上的代码调用时使用的第一条记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨伙计们。我迷路了,我找不到这个答案存在的地方。我正在打开特定记录的特定表格。容易吗?

Hi Folks. I''m lost and I can''t find a spot where this answer exists. I''m opening a specific form to a specific record. Easy right?

展开 | 选择 < span class =codeDivider> | Wrap | 行号

推荐答案

参数[ID] =" &安培;您的公开表格程序中的[ID]可能不明确。在[txtID]表单上调用[ID],使您的参数为[ID] = &安培; [txtID]。看看这是否有所不同。我不知道为什么Access名称默认为字段名称形成控件。
The parameter "[ID]=" & [ID] in your open form procedure may be ambiguous. Call [ID] on the form [txtID] so that your argument is "[ID]=" & [txtID]. See if that makes any difference. I don''t know why Access names form controls by field names as default.


如果你在遵循BikeToWork的建议后仍然遇到问题,那么你可能想发布在这里打开Form时运行的代码可能有错误。
If you are still having trouble with this after following BikeToWork''s recommendation, then you might want to post the code that runs on open of the Form here as that might have the bug in it.


MS Access宏和VBA是两种完全不同的编程语言,看起来是相同的/等价的两者之间的命令通常不一样。我们必须使用宏和VBA中的XML脚本来告诉你差异是什么......
MS Access Macro and VBA are two entirely different programing languages and what appear to be the same/equivalent commands between the two are often not the same. We would have to have the XML script from the Macro and the VBA to be able to tell you what the differences are...


这篇关于显示正确的记录和PK。表单上的代码调用时使用的第一条记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆