查看: 942|回复: 5
|
小弟不才~~~请各位vb大大进来看看!
[复制链接]
|
|
With rptSalesEnquiryChecklist
Set .DataSource = ar
.DataMember = ""
With .Sections("Section7").Controls
For i = 1 To .Count
If TypeOf .Item(i) Is RptTextBox Then
Select Case .Item(i).Name
Case "txtAddress"
.Item(i).DataMember = ""
.Item(i).DataField = ar.Fields("Address").Name
Case "txtSupplier_Company_Name"
.Item(i).DataMember = ""
.Item(i).DataField = ar.Fields("Supplier_Company_Name").Name
Case "txtSupplier_Name"
.Item(i).DataMember = ""
.Item(i).DataField = ar.Fields("Supplier_Name").Name
Case "txtProduct"
.Item(i).DataMember = ""
.Item(i).DataField = ar.Fields("Product").Name
Case "txtContact_No"
.Item(i).DataMember = ""
.Item(i).DataField = ar.Fields("Contact_No").Name
End Select
End If
Next i
End With
End With

我的data report会出现这个msg box...到底是什么问题呢?
以上是我的coding... |
|
|
|
|
|
|
|

楼主 |
发表于 9-4-2007 04:51 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 9-4-2007 06:44 PM
|
显示全部楼层
Section7?? 你确定是Section7吗??
如果没猜错,Section7多数是Group Footer来的
你放Address, Name, ... 在Group Footer吗?? |
|
|
|
|
|
|
|

楼主 |
发表于 9-4-2007 07:01 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 9-4-2007 07:08 PM
|
显示全部楼层
酱我就不会了,
不过根据你的Error Message,应该是Data Source放错了.
如果真的不能解决,就直接在Google找"Report sections do not match data source" |
|
|
|
|
|
|
|
发表于 20-4-2007 10:32 AM
|
显示全部楼层
你的coding 和你的database link 不到?  |
|
|
|
|
|
|
| |
本周最热论坛帖子
|