Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: One Of Those Days...


Vice JDK
and Man of the People





Status: Offline
Posts: 5453
Date: Jun 25, 2004
RE: RE: One Of Those Days...



i did manage a javascript online quote calculator for a website i'm building.. but i mostly stole the code

Nicely done lass!

__________________
You can't polish a turd


I ain't a Pirate and I ain't called Anne, but I sure am Bonnie!

(Mrs)





Status: Offline
Posts: 3266
Date: Jun 25, 2004

isn't that what coding is all about.. not 'reinventing the wheel' etc etc

__________________
current location: Antrim. I like it.


Vice JDK
and Man of the People





Status: Offline
Posts: 5453
Date: Jun 25, 2004

Right! Recycling is good!

__________________
You can't polish a turd


I am the Jammie King!




Status: Offline
Posts: 12736
Date: Jun 25, 2004

So do you chuck all of your old code in the green bin for the recycling dudes on Thursdays?

__________________
The King has spoken... But nobody listened.


I ain't a Pirate and I ain't called Anne, but I sure am Bonnie!

(Mrs)





Status: Offline
Posts: 3266
Date: Jun 25, 2004

we're a bit behind in northern ireland.. no recycle pick-up.. so rather i dump my code out in the back yard with all the other 'recyclables' (is that spelt completely wrong?) that are going to be taken to the recycle bin at some point by my housemate who has been promising to for the past 2 years..

__________________
current location: Antrim. I like it.


Vice JDK
and Man of the People





Status: Offline
Posts: 5453
Date: Jun 26, 2004

Chuck it all in a message board to link to the next time someone asks the exact same question.

__________________
You can't polish a turd


I am the Jammie King!




Status: Offline
Posts: 12736
Date: Jun 26, 2004

Bugger it.  It's gonna be another one of those days.


I've been to the post office this morning to pick up a parcel which is bound to be a bunch of My Little Ponies. 


I get to work nice and early hoping toget my stuff done and go home nice and early, only to find that the e-mails I need to get on with my work haven't arrived yet. 


And no-one's in the office reponsible for 'em until 8. 


If I'm lucky.


On the plus side, I'm getting some quality alone time on the Board.  I can post as much as I like and no-one's gonna interupt me!



__________________
The King has spoken... But nobody listened.


Baaaaa.
No, really - Just Baaaaa.


Status: Offline
Posts: 1561
Date: Jun 26, 2004

He he he - D isn't home yet, but the postman has just been to visit me with a parcel - I think its a pony but I'll wait until D gets home to open it!!


The postman laughed at me when I opened the door.  Ok so he got me out of bed, my crazy hair was all sticking up and I was wearing my lovely blue dressing gown - but hey - no need to actually laugh out loud is there?  I thought I looked cute when I first woke up in the morning!?



__________________
Argh Snake.


Tickle me, Elmo!

I'm Roger Moore's Stunt Double!



Status: Offline
Posts: 4936
Date: Jun 26, 2004

You must look cute to Darren if he's the one who tells you you are. 

__________________
Don't you just love it?


Baaaaa.
No, really - Just Baaaaa.


Status: Offline
Posts: 1561
Date: Jun 26, 2004

I don't believe D has ever described me as cute!!


I was just hping tht cute better described my first thing in the morning state than minging.



__________________
Argh Snake.


Tickle me, Elmo!

I'm Roger Moore's Stunt Double!



Status: Offline
Posts: 4936
Date: Jun 26, 2004

Sorry Vic.  Can't help you on that one.  Never seen you in your dressing gown!  Thinking about it though, I wouldn't have imagined minging.

__________________
Don't you just love it?


I am the Jammie King!




Status: Offline
Posts: 12736
Date: Jun 26, 2004

Ewww.  Minger?  Where?



__________________
The King has spoken... But nobody listened.


Baaaaa.
No, really - Just Baaaaa.


Status: Offline
Posts: 1561
Date: Jun 28, 2004

Right here baby - minging like mad.

__________________
Argh Snake.


Tickle me, Elmo!

I'm Roger Moore's Stunt Double!



Status: Offline
Posts: 4936
Date: Jun 28, 2004

D - get to it; she's minging just for you!

__________________
Don't you just love it?


Vice JDK
and Man of the People





Status: Offline
Posts: 5453
Date: Jun 28, 2004


SAS mixed with a little SQL.  I can never make my mind up which to use so I mix them - much to my boss' confusion!!

Nicely. SQL is definitely an nice mixer! What you didn't see with my code is that the loop calls 230 sql passes. I reinvented the wheel with OLE DB/ADO in VBA to time test it out with one SQL pass. Looked like:


Sub OLEDB_TEST()

Dim cn As ADODB.Connection, rs As ADODB.Recordset
Dim clcMde As Long

Let clcMde = Application.Calculation

With Application
.ScreenUpdating = False
.Calculation = xlCalculationManual
End With

On Error Resume Next

Set cn = New ADODB.Connection

cn.Open "Provider=SQLOLEDB; " & _
"Network Library=DBMSSOCN; " & _
"Data Source=xxx.xxx.xxx.xxx,1433; " & _
"User ID=myself; " & _
"Password=myself"

Set rs = New ADODB.Recordset

With rs
Set .ActiveConnection = cn
.Source = "SELECT Sum(Yadda.yadda) ….”

.Open , , adOpenStatic, adLockReadOnly

Sheets(1).Range("b2").CopyFromRecordset rs
.Close
End With
cn.Close

Set rs = Nothing: Set cn = Nothing

With Application
.ScreenUpdating = True
.Calculation = clcMde
End With

If CBool(Err.Number) Then MsgBox Err.Description

End Sub

Early bound, needs an ADO reference. Nevermind my boss, noone in my company has any idea what I'm talking about with this stuff! No matter, works pretty well for my purposes!

__________________
You can't polish a turd


Baaaaa.
No, really - Just Baaaaa.


Status: Offline
Posts: 1561
Date: Jun 28, 2004

Nice!!

__________________
Argh Snake.


Tickle me, Elmo!

I'm Roger Moore's Stunt Double!



Status: Offline
Posts: 4936
Date: Jun 28, 2004

It's always useful to know more than your boss does. 

__________________
Don't you just love it?


Vice JDK
and Man of the People





Status: Offline
Posts: 5453
Date: Jun 28, 2004

Sometimes, yes. Other times, it's opportune situation for the boss to underrate you.

__________________
You can't polish a turd
«First  <  1 2 | Page of 2  sorted by
 
Quick Reply

Please log in to post quick replies.

Post to Digg Post to Del.icio.us


Create your own FREE Forum
Report Abuse
Powered by ActiveBoard