问题描述
我在vb6.0中为Report编写代码当我运行Report It 显示错误(无效的数据源)
I write a code for Report in vb6.0 When I run Report Its show error (Invalid data source)
On Error Resume Next
DataEnvironment1.Connection2.Close
Dim a As String
a = Text1.Text
Adodc1.CommandType = adCmdTable
DataEnvironment1.Connection2.Open
DataEnvironment1.Command2 a
DataReport1.Show
On Error Resume Next
DataEnvironment1.Connection2.Close
Dim a As String
a = Text1.Text
Adodc1.CommandType = adCmdTable
DataEnvironment1.Connection2.Open
DataEnvironment1.Command2 a
DataReport1.Show
在Dataenvironment1中我设置了所有喜欢
In The Dataenvironment1 I set all Like
SELECT * FROM invoicedetails WHERE DEP =?
SELECT * FROM invoicedetails WHERE DEP = ?
参数定义
plz帮助我
推荐答案
请使用以下链接获取VB 6个问题
Please use the following link for VB 6 questions
http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/6a0719fe-14af-47f7-9f51-a8ea2b9c8d6b
作为这个论坛仅适用于VB> Net questios
as this forum is for VB >Net questios only
这篇关于vb6.0中的数据源无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!