Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-08-2005, 11:07 PM
Junior Member
 
Join Date: Dec 2005
Posts: 12
Default Question with ADODB.command parameters

Hi,

For some reason I can't get SWF kit to execute an access query that takes a parameter. It executes fine when there are no parameters, but not otherwise. Here is my code:

var adInteger = 3;
var adParamInput = 1;

var cmd = new ActiveXObject("ADODB.Command");
cmd.ActiveConnection = connStr;
cmd.CommandText = "setCurrentSession";
cmd.CommandType = adCmdStoredProc;
var currentSession = FlashPlayer.getVariable("_root.currentSession");

var parm1 = cmd.CreateParameter("CURRENTSESSION", adInteger, adParamInput, 4, 1); //will eventually be passing currentSession, but for now I can't even pass 1

cmd.Parameters.Append(parm1);

cmd.Execute;

assistance would be appriciated!
Reply With Quote
  #2 (permalink)  
Old 12-09-2005, 01:16 AM
Junior Member
 
Join Date: Dec 2005
Posts: 12
Default Re:Question with ADODB.command parameters

also...here is my MS ACCESS STORED QUERY

PARAMETERS CURRENTSESSION Long;
UPDATE sessionCounter SET sessionCounter.currentSession = CURRENTSESSION
WHERE (((sessionCounter.sessionID)=1));
Reply With Quote
  #3 (permalink)  
Old 12-09-2005, 02:13 AM
Junior Member
 
Join Date: Dec 2005
Posts: 12
Default Re:Question with ADODB.command parameters

alright, I'm a fool!

I figured it out, so I'll save someone some future pain....

The parameter was adding just find and it was executing just find. The problem was tha I had chose to package the database with the project as an attatchment and had forgot!!!

So in the testing environment I kept looking at the original DB, not the one that had been packaged with the app! So I thought that it just wasn't updating. I also kept testing it within the swfkit testing environment so my outputs never got updated (the fresh databse kept overriding the one that was being written to).

That's what happens when you jump back and forth between a bunch of projects. The joys of being an advertising agency programmer!!!!
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:05 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.