使用if,然后使用多行代码 [英] Using if and then with multiple lines of code

查看:63
本文介绍了使用if,然后使用多行代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我首先尝试了另一种方法,但它没有用。

现在我得到的代码只能用于If then的第一部分。码。第二个和第三个如果那时不想触发,并将数据填充到子表单。

见屏幕图片。

主窗体名为frmrtMainchip

subform = RaceTimingSF3chip


种族编号有时在RFID芯片的strInput txtfield中以这种格式接收 - 0001000,0002000,0003000,然后我必须在将其填充到子表格Racenumber之前将其拆分。字段。


我成功地将其变为data1,data2,data3和data3。在主体上。

然而,我的问题是将数据1-3字段复制到Racenumber字段。子表单中的字段RaceTimingSF3chip在每次添加新行之后。只有Data1似乎有效。

这里是当前代码:

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

解决方案

< blockquote>如果我可以使用它,那么每个表单和报表都可以在我的应用程序中运行。如果骑车人在1和1之间完成间隙,则rfid输入100%工作,但只要2或3同时越过终点线,那么它就无法处理strInput txtbox中的多个racenumbers


这是你要找的吗?

展开 | 选择 | Wrap | 行号


嗨Adezi;是的,代码以任何数字序列0005000,0002120,0002120从rfid接收器到达。在strInput txtbox中,然后我需要将其添加到附加了racefinishtime的子表单中。有时甚至可能是单个数字,即0008190,在strInput txtbox中收到。

子表单

展开 | 选择 | Wrap | 行号


I first tried another method but it was not working.
Now I get this code only to work with the first part of the "If then" code. The 2nd and 3rd "if then" does not want to fire, and populate data to subform.
See screen pic.
The main form is called "frmrtMainchip"
subform = RaceTimingSF3chip

Racenumbers are sometimes received in the strInput txtfield from RFID chips in this format - 0001000,0002000,0003000, and i then have to split it before populating it to the subform "Racenumber" field.

I do it successfully into "data1", "data2","data3" on the mainform.
My problem however, is to copy the Data 1-3 fields to "Racenumber" field in the subform "RaceTimingSF3chip" after a new line has been added everytime. Only Data1 seems to work.
here is current code:

Expand|Select|Wrap|Line Numbers

解决方案

If i can get this to work, then every single form and report works in my application. The rfid input works 100% if the cyclist finished 1 by 1 with gaps in between, but as soon as 2 or 3 crosses the finishline at the same time, then it can''t deal with the multiple racenumbers in the strInput txtbox


Is this what you are looking for?

Expand|Select|Wrap|Line Numbers


Hi Adezi; yes the code arrives from the rfid receiver in any number sequence "0005000,0002120,0002120" in the strInput txtbox, and then i need to get it into the subform with a racefinishtime attached. Sometimes it may even be a single number also ie 0008190, received in the strInput txtbox.
Subform

Expand|Select|Wrap|Line Numbers


这篇关于使用if,然后使用多行代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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