无论是bof还是eof都是如此 [英] Either bof or eof is true

查看:65
本文介绍了无论是bof还是eof都是如此的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

if NOT rs.eof then
rs.Fields(0).Value = Text1
rs.Fields(1).Value = Text2
rs.Fields(2).Value = Text3
rs.Fields(3).Value = Text4
rs.Fields(4).Value = Text5
If Option1.Value = True Then
rs.Fields(5).Value = Option1.Caption
Else
rs.Fields(5).Value = Option2.Caption
End If
rs.Fields(6).Value = Text6
rs.Fields(7).Value = Text7
rs.Fields(8).Value = Text8
rs.Fields(9).Value = Text9
rs.Fields(10).Value = Text10
rs.Fields(11).Value = trext11
MsgBox ("data is saved successfully"), vbInformation
rs.Update
end if

推荐答案

BOF代表文件的开头,EOF代表文件结束。一般来说,它是说没有记录所以你不能尝试访问它。
BOF stands for Beginning of file and EOF is End of file. In normal words, it is saying that there is no record so you cannot try accessing it.


这篇关于无论是bof还是eof都是如此的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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