apped2table函数用于添加列表中尚未存在的项目。 [英] apped2table function for adding an item not already in the list.

查看:46
本文介绍了apped2table函数用于添加列表中尚未存在的项目。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用这个append2table来自Allen Browne的函数将项目添加到列表中尚未包含的组合框中。

这是函数,带有我的字段和表名

I am using this "append2table" function from Allen Browne to add an item to the combobox that is not already in the list.
Here is the function, with my fields and table names

展开 | 选择 | Wrap | 行号

推荐答案

我不确定,但是你不需要在它周围用双引号括起来。


赞:
I am not sure, but don''t you need to wrap double quotes around it.

Like:
展开 | < span class =codeLinkonclick =selectAll(this);>选择 | Wrap | 行号


就个人而言,如果您不关心此代码是否可重用,您可以减少代码并使其更具可读性。假设一个名为tblProject的表名,以及一个名为cboProjects的组合框,它由一个控制源为[ProjectDescription]的单一绑定列组成,那么代码将是:
Personally, if you don''t care whether or not this code is reusable, you can reduce the code and make it more readable. Assuming a Table Name of tblProject, and a Combo Box named cboProjects, which consists of a Single Bound Column whose Control Source is [ProjectDescription], then the code would be:
展开 | 选择 | Wrap | 行号


ajalwaysus,


我收到错误提示字段无法更新如果我改变了你的建议。


Adezil,


尝试过有限的代码,曾经是mre。错误现在是ODBC调用失败

注意:comboboxname:cboProjectID,记录将被插入到qry_SubmissionActive中。 。


仍在寻找答案。
ajalwaysus,

I get an error saying "Field cannot be updated" if I make change you suggested.

Adezil,

Tried the limited code, once mre. the error is now "ODBC call failed"
Note:comboboxname: cboProjectID, The records are to be inserted into "qry_SubmissionActive" .

still looking for the answer.


这篇关于apped2table函数用于添加列表中尚未存在的项目。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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