OnNotInList - 调整粘贴的代码 [英] OnNotInList - tweaking pasted code

查看:56
本文介绍了OnNotInList - 调整粘贴的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我知道,我是最差的编码员。我正在研究我的第一个大型Access项目,并且没有接受过正式培训,我有点磕磕绊绊地走过去。大学5年前我从未与VB合作过。


我试图通过打开一个新表单将新项目添加到组合框中。这是我的设置:

标本表格有组合框Species_Code。在Species_Code中键入内容,如果不存在,则会弹出想要添加?如果是,则打开物种表格,输入新物种,包括该表格中的其他字段(通用名称,科学名称,属名等)。然后关闭表单并使用样本表单继续您的快乐方式。


无论如何,我从Microsoft建议的代码页复制了这个:


在Specimen表单上的Species_Code组合框中:

展开 | 选择 | Wrap | 行号

解决方案


我知道我知道,我是最差的编码员。我正在研究我的第一个大型Access项目,并且没有接受过正式培训,我有点磕磕绊绊地走过去。大学5年前我从未与VB合作过。


我试图通过打开一个新表单将新项目添加到组合框中。这是我的设置:

标本表格有组合框Species_Code。在Species_Code中键入内容,如果不存在,则会弹出想要添加?如果是,则打开物种表格,输入新物种,包括该表格中的其他字段(通用名称,科学名称,属名等)。然后关闭表单并使用样本表单继续您的快乐方式。


无论如何,我从Microsoft建议的代码页复制了这个:


在Specimen表单上的Species_Code组合框中:

展开 | 选择 | Wrap | 行号


谢谢你,但仍然是同样的问题。 />

因此无法启动Species表单添加新物种并将其转到下一条新记录(101)?


< blockquote class =post_quotes>
我知道我知道,我是最糟糕的编码器。我正在研究我的第一个大型Access项目,并且没有接受过正式培训,我有点磕磕绊绊地走过去。大学5年前我从未与VB合作过。


我试图通过打开一个新表单将新项目添加到组合框中。这是我的设置:

标本表格有组合框Species_Code。在Species_Code中键入内容,如果不存在,则会弹出想要添加?如果是,则打开物种表格,输入新物种,包括该表格中的其他字段(通用名称,科学名称,属名等)。然后关闭表单并使用样本表单继续您的快乐方式。


无论如何,我从Microsoft建议的代码页复制了这个:


在Specimen表单上的Species_Code组合框中:

展开 | 选择 | Wrap | 行号


I know I know, I''m the worst kind of coder. I am working on my first big Access project and with no formal training I am sort of stumbling my way through. I haven''t worked with VB since college about 5 years ago.

I am trying to add a new item to a combo box by opening a new form. Here is my setup:
Specimen form has combo box Species_Code. Type something into Species_Code and if it''s not there you get the pop up "Want to add?" if Yes then open Species form, type in a new species including other fields in that table (common name, scientific name, genus, etc). Then close the form and go on your merry way with the Specimen form.

Anyway, I copied this from a Microsoft suggested code page:

On the Species_Code combo box on the Specimen form:

Expand|Select|Wrap|Line Numbers

解决方案

I know I know, I''m the worst kind of coder. I am working on my first big Access project and with no formal training I am sort of stumbling my way through. I haven''t worked with VB since college about 5 years ago.

I am trying to add a new item to a combo box by opening a new form. Here is my setup:
Specimen form has combo box Species_Code. Type something into Species_Code and if it''s not there you get the pop up "Want to add?" if Yes then open Species form, type in a new species including other fields in that table (common name, scientific name, genus, etc). Then close the form and go on your merry way with the Specimen form.

Anyway, I copied this from a Microsoft suggested code page:

On the Species_Code combo box on the Specimen form:

Expand|Select|Wrap|Line Numbers


Thanks for that, but still the same problem.

So there is no way to launch the Species form to add a new species and have it go to the next new record (101)?


I know I know, I''m the worst kind of coder. I am working on my first big Access project and with no formal training I am sort of stumbling my way through. I haven''t worked with VB since college about 5 years ago.

I am trying to add a new item to a combo box by opening a new form. Here is my setup:
Specimen form has combo box Species_Code. Type something into Species_Code and if it''s not there you get the pop up "Want to add?" if Yes then open Species form, type in a new species including other fields in that table (common name, scientific name, genus, etc). Then close the form and go on your merry way with the Specimen form.

Anyway, I copied this from a Microsoft suggested code page:

On the Species_Code combo box on the Specimen form:

Expand|Select|Wrap|Line Numbers


这篇关于OnNotInList - 调整粘贴的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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