Click here to Skip to main content
15,889,721 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Get me a count.... Pin
Catalin Murariu7-Sep-07 0:31
Catalin Murariu7-Sep-07 0:31 
GeneralRe: Get me a count.... Pin
Xagyg11-Sep-07 4:17
Xagyg11-Sep-07 4:17 
GeneralRe: Get me a count.... Pin
PIEBALDconsult11-Sep-07 4:35
mvePIEBALDconsult11-Sep-07 4:35 
GeneralRe: Get me a count.... Pin
Xagyg11-Sep-07 5:12
Xagyg11-Sep-07 5:12 
GeneralRe: Get me a count.... Pin
PIEBALDconsult11-Sep-07 5:33
mvePIEBALDconsult11-Sep-07 5:33 
GeneralRe: Get me a count.... Pin
Xagyg11-Sep-07 5:34
Xagyg11-Sep-07 5:34 
GeneralRe: Get me a count.... Pin
PIEBALDconsult11-Sep-07 10:30
mvePIEBALDconsult11-Sep-07 10:30 
GeneralRe: Get me a count.... Pin
Rob Manderson30-Aug-07 8:17
protectorRob Manderson30-Aug-07 8:17 
Check the MFC docs for CRecordset. They specifically advise that the record count isn't known until you've scrolled to the last record and then recommend you do just that if you need the count. A colleague, many years ago, followed that advice. It worked fine on his test databases but when it hit the real world and a recordset containing 3 million records it didn't work quite so well. Interestingly enough, the customer put up with the shocking performance (> 40 minutes for a form refresh). Go figure!

Rob Manderson

My bloghttp://robmanderson.blogspot.com[^]

GeneralRe: Get me a count.... Pin
Dan Neely30-Aug-07 8:54
Dan Neely30-Aug-07 8:54 
GeneralRe: Get me a count.... Pin
StevenWalsh6-Sep-07 10:36
StevenWalsh6-Sep-07 10:36 
GeneralRe: Get me a count.... Pin
Chris Meech30-Aug-07 9:47
Chris Meech30-Aug-07 9:47 
GeneralRe: Get me a count.... Pin
Mauro Leggieri31-Aug-07 2:39
Mauro Leggieri31-Aug-07 2:39 
GeneralRe: Get me a count.... Pin
Vasudevan Deepak Kumar30-Aug-07 22:45
Vasudevan Deepak Kumar30-Aug-07 22:45 
GeneralRe: Get me a count.... Pin
darkelv30-Aug-07 23:38
darkelv30-Aug-07 23:38 
GeneralRe: Get me a count.... Pin
NormDroid31-Aug-07 0:40
professionalNormDroid31-Aug-07 0:40 
GeneralBeing Database-Agnostic - whats the Problem here? Pin
jhwurmbach31-Aug-07 3:08
jhwurmbach31-Aug-07 3:08 
GeneralRe: Being Database-Agnostic - whats the Problem here? Pin
KaЯl7-Sep-07 14:27
KaЯl7-Sep-07 14:27 
GeneralRe: Get me a count.... Pin
Ted Ferenc31-Aug-07 6:18
Ted Ferenc31-Aug-07 6:18 
GeneralRe: Get me a count.... Pin
Rajesh R Subramanian2-Sep-07 23:39
professionalRajesh R Subramanian2-Sep-07 23:39 
GeneralRe: Get me a count.... Pin
Ted Ferenc3-Sep-07 0:24
Ted Ferenc3-Sep-07 0:24 
GeneralI came across this one too Pin
r_maiya29-Aug-07 10:30
r_maiya29-Aug-07 10:30 
GeneralRe: I came across this one too Pin
PIEBALDconsult29-Aug-07 10:48
mvePIEBALDconsult29-Aug-07 10:48 
GeneralExcel Pin
gantww28-Aug-07 9:52
gantww28-Aug-07 9:52 
GeneralRe: Excel Pin
PIEBALDconsult28-Aug-07 10:05
mvePIEBALDconsult28-Aug-07 10:05 
AnswerRe: Excel Pin
chrishuff28-Aug-07 10:28
chrishuff28-Aug-07 10:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.