Re: ADO Command object in a Loop
From: SA (~fake.address_at_nspm.com)
Date: 05/19/04
- Next message: solex: "Re: VBA code to take a screenshot?"
- Previous message: M: "VBA code to take a screenshot?"
- In reply to: solex: "ADO Command object in a Loop"
- Next in thread: solex: "Re: ADO Command object in a Loop"
- Reply: solex: "Re: ADO Command object in a Loop"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 19 May 2004 10:50:48 -0400
Dan:
Check the version of the MDAC library that is both on your system and that
is referenced by Access 2000. By default A2K references ADO version 2.1,
which is old and some what buggy in our experience in working with
parameters and properly refreshing the collection etc. If you haven't
downloaded MDAC 2.8 (which contains the ADO libraries), which the latest
version, you can do that from MS' web site. Then update your reference in
the db to ADO 2.7 or greater type library (ADO 2.7 was the base on Windows
Xp, 2.5 on Windows 2000, 2.1 with Access 2000).
-- Steve Arbaugh ACG Soft http://ourworld.compuserve.com/homepages/attac-cg "solex" <solex@nowhere.com> wrote in message news:e5jOTDRPEHA.3140@TK2MSFTNGP11.phx.gbl... >I have a problem with a stored procedure call that occurs in a loop. I > initialize both the stored procedure and it's set of parameters before > entering the loop using the ADO.Command object and its parameter > collection. > Inside the loop I set the parameters and then execute the procedure. > > The problem I am having is the parameters do not seem to take on the > appropriate values after the first iteration of the loop. The inital > values > of the parameters in the first iteration of the loop are the values that > remain regardless of how many times the loop is iterated. > > The values I am sending differ greatly so it is not a data issue, I ported > the exact code to VB and executed the command and it works perfectly it > appears to be a problem within Access 2K VBA. > > Has anyone else had this problem? > > Regards, > Dan > > >
- Next message: solex: "Re: VBA code to take a screenshot?"
- Previous message: M: "VBA code to take a screenshot?"
- In reply to: solex: "ADO Command object in a Loop"
- Next in thread: solex: "Re: ADO Command object in a Loop"
- Reply: solex: "Re: ADO Command object in a Loop"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|