|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
DataEnvironment1
Hi there.
I built the following code to run a report: Private Sub cmdTest_Click() If Not IsNull(txtDateFrom) Or (txtDateFrom <> "") Then DataEnvironment1.Command2 txtDateFrom.Text DataReport2.Show End If End Sub When I run it displays the report strait away but if I try to run another report it gives a Run-time error '3705' saying: Operation not allowed when the objects is open. If after or before the line saying dataReport2.Show I insert the following line: DataEnvironment1.rsCommand2.Close I get another error saying: Prepared statment '(@P1 nvarchar(50))SELECT tblP.switchname, tblN.NNI, tblB' expects parameter @P1, which was not suplied. Is there anyone that could tell me what I'm doing wrong or tell me the steps to run a report? Thanks
__________________
If this help you please show your gratitude by adding reputation points. Thanks JonyBravo |
|
#2
|
|||
|
|||
|
Sorry, I don't use DataReport or DataEnvironments. Can't you step through your code with the VB debugger to isolate the cause of your problem?
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > DataEnvironment1 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|