Viewing 15 posts - 1 through 15 (of 21 total)
point taken. actually, i am using the exact same conn method as you did except my connection string is a little diff from yours. i did check those syntax for...
October 5, 2006 at 3:08 pm
thank you for your diligent help, lisa. i really appreciated.
1) i can afford to leave out the temp table but couldn't understand why it won't work that way. it could...
October 5, 2006 at 1:50 pm
after few more trial and error, the results were not encouranging. here were my test runs i have tried.
1) i left out my condition...
October 5, 2006 at 7:51 am
Remember earlier I modifed my sproc so that it does not require any parameter input. Instead I hardcoded the parameters inside my sproc just to test.
Here is the modified portion...
October 2, 2006 at 2:59 pm
Ready? Here you go. This is the orig stored proc with the two parameters:
USE Septage
GO
CREATE PROCEDURE dbo.proc_Charge
(
@Start datetime,
@End datetime
)
/*
Object: proc_Charge
Description: Get charges per customer including penalty if any
Usage: proc_Charge @Start,...
October 2, 2006 at 2:06 pm
ok, Lisa. I did exactly what you showed there and I still received the same error message, "Operation is not allowed when the object is closed".
At this point, I believe...
October 2, 2006 at 1:37 pm
thank you, cje and lisa. I figured what the problem is. It is the stored procedure.
The way I figured it out is to...
October 2, 2006 at 1:29 pm
ok, Lisa. The execute only allows these parameter:
Execute([RecordsAffected], [Paramaters], [Options as Long = -1)
Here is the revision for the 1st suggestion:
if iStatus = 1 then
With cmd
.Activeconnection = conn
...
October 2, 2006 at 12:20 pm
ok, cje. I tried your suggestion but it didn't work. Crashed at the same spot, which is "If Not rst.BOF() then..." with the same error messge.
Lisa, I am going tried...
October 2, 2006 at 10:57 am
Another version of code. This one is using command.
Sub Test()
Dim RangeA As Range
Dim RangeB As Range
Set RangeA = Worksheets("CS").Range("B3")
Set RangeB = Worksheets("CS").Range("G3")
Dim cmd As...
October 2, 2006 at 9:02 am
exec proc_Charge2 will return results in QA.
Below is my revision for the sub proc in Excel:
Sub Test()
Dim RangeA As Range
Dim RangeB As Range
Set RangeA...
October 2, 2006 at 8:50 am
almost to that point...i made a change to my stored procedure and see if that any diff. Just to test until I figure out why it bombed. I removed the...
October 2, 2006 at 8:32 am
I also set a breakpoint right after the statement "Set rst = cmd.Execute". The rst.fields.count = 0 when I checked the count value for the recordset on the immediate window.
October 2, 2006 at 8:09 am
ok, cje. The istatus return a value of 1.
October 2, 2006 at 7:59 am
Lisa, I used the MS Component Checker to check my MDAC version. It reports that I have MDAC 2.8 SP1 on my PC.
September 29, 2006 at 3:26 pm
Viewing 15 posts - 1 through 15 (of 21 total)