Click here to Skip to main content
15,889,281 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How we can get last 12 months using current month using sql Pin
Mycroft Holmes11-May-16 2:51
professionalMycroft Holmes11-May-16 2:51 
GeneralWe want only required Month and Year instead of complete date in where condition using sql Pin
MANISHA SONAWANE16-May-16 0:05
MANISHA SONAWANE16-May-16 0:05 
QuestionDisplay status of SQL query in VBA Pin
Member 124051985-May-16 4:57
Member 124051985-May-16 4:57 
AnswerRe: Display status of SQL query in VBA Pin
Dave Kreskowiak5-May-16 12:25
mveDave Kreskowiak5-May-16 12:25 
AnswerRe: Display status of SQL query in VBA Pin
Mycroft Holmes8-May-16 14:21
professionalMycroft Holmes8-May-16 14:21 
GeneralRe: Display status of SQL query in VBA Pin
Member 124051989-May-16 4:39
Member 124051989-May-16 4:39 
GeneralRe: Display status of SQL query in VBA Pin
Dave Kreskowiak9-May-16 4:50
mveDave Kreskowiak9-May-16 4:50 
AnswerRe: Display status of SQL query in VBA Pin
Sascha Lefèvre9-May-16 5:28
professionalSascha Lefèvre9-May-16 5:28 
I have practically no experience with VBA so I can't guarantee that the following would work but I assume it will (maybe someone else can comment on this). Also I'm deliberately not addressing the issue with the high amount of records you want to deal with and the issue with the unresponsive UI. This is a kind-of workaround to be able to display progress-information:

1) Issue your query but modified to return only the count of found records.

2) Divide the record-count into batches of some size that suits you (e.g. 5000) and issue your query but with added paging-instructions: sql server paging - Google Search[^]

After one batch/page has been retrieved, you can update the progress information, then retrieve the next batch/page, until finished.

The price you're paying for the benefit of progress information is more overall time required because the database server has to execute the query multiple times. That's why the batch/page size shouldn't be too small (while a smaller size would improve the resolution of the progress update).
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson


modified 9-May-16 11:38am.

AnswerRe: Display status of SQL query in VBA Pin
Patrice T9-May-16 5:42
mvePatrice T9-May-16 5:42 
GeneralRe: Display status of SQL query in VBA Pin
Member 124051989-May-16 8:52
Member 124051989-May-16 8:52 
GeneralRe: Display status of SQL query in VBA Pin
Member 124051989-May-16 8:59
Member 124051989-May-16 8:59 
GeneralRe: Display status of SQL query in VBA Pin
Patrice T9-May-16 9:41
mvePatrice T9-May-16 9:41 
GeneralRe: Display status of SQL query in VBA Pin
Member 124051989-May-16 9:53
Member 124051989-May-16 9:53 
GeneralRe: Display status of SQL query in VBA Pin
Patrice T9-May-16 10:31
mvePatrice T9-May-16 10:31 
GeneralRe: Display status of SQL query in VBA Pin
Member 124051989-May-16 13:00
Member 124051989-May-16 13:00 
AnswerRe: Display status of SQL query in VBA Pin
Patrice T9-May-16 16:21
mvePatrice T9-May-16 16:21 
GeneralRe: Display status of SQL query in VBA Pin
Member 124051989-May-16 10:05
Member 124051989-May-16 10:05 
AnswerRe: Display status of SQL query in VBA Pin
Mycroft Holmes9-May-16 14:25
professionalMycroft Holmes9-May-16 14:25 
GeneralRe: Display status of SQL query in VBA Pin
Member 1240519811-May-16 3:27
Member 1240519811-May-16 3:27 
QuestionInfoi needed on Cbutton from(SSDiver2112) Pin
Member 124895254-May-16 10:06
Member 124895254-May-16 10:06 
AnswerRe: Infoi needed on Cbutton from(SSDiver2112) Pin
Dave Kreskowiak4-May-16 10:09
mveDave Kreskowiak4-May-16 10:09 
SuggestionRe: Infoi needed on Cbutton from(SSDiver2112) Pin
Sascha Lefèvre4-May-16 10:20
professionalSascha Lefèvre4-May-16 10:20 
QuestionError in web automation using OpenQA.Selenium for Google chrome Pin
srikrishnathanthri3-May-16 1:10
srikrishnathanthri3-May-16 1:10 
QuestionRe: Error in web automation using OpenQA.Selenium for Google chrome Pin
Eddy Vluggen4-May-16 2:56
professionalEddy Vluggen4-May-16 2:56 
AnswerRe: Error in web automation using OpenQA.Selenium for Google chrome Pin
srikrishnathanthri4-May-16 3:18
srikrishnathanthri4-May-16 3:18 

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.