[英]VB.net - RsData Query
I've got the following situation that I need a bit of help with. 我遇到以下情况,需要一些帮助。
I'm pulling through some site locations to a string from a field in a DB using RsData. 我正在使用RsData将某些站点位置从数据库中的字段拉到字符串。
strsite = rsData("Site") strsite = rsData(“ Site”)
Now the issue I've got is that some of items in the table have multiple rows with different sites. 现在,我遇到的问题是表中的某些项目具有多行且具有不同的站点。
How would I therefore check if multiple values exist and if so set strSite = "Various" 因此,我将如何检查是否存在多个值以及是否将其设置为strSite =“ Various”
Thanks! 谢谢!
If YourRecordSetObject.RecordCount > 1 Then
strsite = "Various"
Else
strsite = rsData("Site")
End If
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.