小rst.Edit Loop Glitch(任何人都可以帮忙!) [英] Small rst.Edit Loop Glitch (Can anyone Help!)
本文介绍了小rst.Edit Loop Glitch(任何人都可以帮忙!)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好我在下面有一些细节,我想通过输入我详细说明''空白''的值来更新表格。
OrderNo StkID StkShortDesc数量价格>
28空白300 DL 1空白
28空白600 SA TU 1空白
我使用的编码如下:
展开 | 选择 | Wrap | 行号
解决方案
猜猜你需要再次检查循环。
我很困惑为什么你使用表单字段,如Forms![frmPreSoline]![StkID]因为它们将是稳定的并且不要在循环中改变。
此外,将价格存储在也记录在产品表中的订单明细行中是违反规范化规则的。如果需要,你可以加入你的桌子,这样就可以获得实际价格。
Nic; o)
猜猜你需要再次查看循环。
我很困惑为什么你使用表格字段如Forms![frmPreSoline]![StkID],因为他们将是稳定的并且不要在循环中改变。
此外,将价格存储在也记录在产品表中的订单明细行中是违反规范化规则的。如果需要,你可以加入你的桌子,这样就可以获得实际价格。
Nic; o)
对不起我编码没什么问题。我已将编码更改为您上次发送给我的内容,并且我有以下内容:
展开 | 选择 | Wrap | 行号
For文本字段你需要将字符串嵌入单引号中,例如:
展开 | 选择 | Wrap | 行号跨度>
Hi i have some details below and i want to update the table by inputting the values where i have detailed ''Blank''.
OrderNo StkID StkShortDesc Qty Price
28 Blank 300 DL 1 Blank
28 Blank 600 SA TU 1 Blank
The coding i have used is as follows:
Expand|Select|Wrap|Line Numbers解决方案Guess you need to check upon the loop again.
I''m puzzled why you use the form fields like "Forms![frmPreSOLine]![StkID]", as they will be "stable" and don''t change in the loop.
Moreover, storing a price in an order detail row that''s also recorded in a product table is against normalization rules. When needed you JOIN your tables and that way you get the actual price.
Nic;o)
Guess you need to check upon the loop again.
I''m puzzled why you use the form fields like "Forms![frmPreSOLine]![StkID]", as they will be "stable" and don''t change in the loop.
Moreover, storing a price in an order detail row that''s also recorded in a product table is against normalization rules. When needed you JOIN your tables and that way you get the actual price.
Nic;o)Yeah sorry i am not much cop with coding. I have changed the coding to what you sent me last time and i have the following:
Expand|Select|Wrap|Line Numbers
For text fields you''ll need to embed the string in single quotes like:
Expand|Select|Wrap|Line Numbers
这篇关于小rst.Edit Loop Glitch(任何人都可以帮忙!)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆