For those new to message boards please try to follow a few simple rules when posting your question.
Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
So I'm working on a report using RDLC for a Windows App.
In the report, there are product items, basically a margin report.
So the customer told me that the final totals of cost, price and margin are off, but the line items are correct. OK.
the method loops a list(of invoiceProfit) from a database function
And there are positive, negative and 0 values in the List(of invoiceProfit)
I never manually added numbers in VB before, and have always used SQL Server to do this.
On a small report with a couple of items, its correct, but on a large report with 1000 items, it's off.
I'm missing something here on this, and I'm not sure what to think.
I think the += just adds numbers, even if the value is negative.
I need to get back to the progress bar issue later today, perhaps now. I'll get back to that post later today or tomorrow.
//Add up the total cost value = $163,315.23
m_totalCost += i.ExtCost
//Add up the total price value = $433,211.49
m_totalPrice += i.ExtPrice
//Add up the total margin value = $270,496.00
m_totalMargin += m_margin
This method produces these values
//Add up the total cost value = $164.575.65
If (i.ExtCost > 0) Then
m_totalCost = m_totalCost + i.ExtCost
ElseIf (i.ExtCost < 0) Then
m_totalCost = m_totalCost - i.ExtCost
//Add up the total price value = $437,101.63
If (i.ExtPrice > 0) Then
m_totalPrice = m_totalPrice + i.ExtPrice
ElseIf (i.ExtPrice < 0) Then
m_totalPrice = m_totalPrice - i.ExtPrice
We have a VB.2010 32 bit Windows Desktop program that has been running for years. It uses an Excel (2010 in this case) database which is accessed through a connectionless OLEDB connection string as
Provider=Microsoft.ACE.OLEDB.12.0;DATA SOURCE='L:\accnt\CustomerFiles\DATABASE 2015.xlsm'; Extended Properties="Excel 12.0 Xml;HDR=YES"
Normally it works fine but on some systems we get a
3706 Provider cannot be found.
It has failed and worked on different W2012R2 systems. It also has failed on Windows 8.1 (64b).
On W8.1 have tried installing AccessDataEngine_x64 but it did not help (32 bit version would not install).
As I said below that will not install. Error message=You cannot install the 32 bit version of Microsoft Access Database Engine 2010 because you current have 64-but Office products installed. If you want to install 32-bit installation of Microsoft Access Database Engine 2010, you will first need to remove the 64-bit installation of Office products. After uninstalling the following product(s), return setup in order to install 32-but version of Microsoft Access Database Engine 2010:
Microsoft Office Standard 2010.
I really do not want to uninstall Office. I do not know if my customers have the 32 bit versions or would be using them. Seems like the 64-bit version is pre-installed on some machines.
If you've got a 64-bit version of Office installed, you can't install the 32-bit driver. There doesn't seem to be a sensible reason for this, but you'd have to ask Microsoft for a definitive answer.
Depending on the files you're reading, you might be able to get away with installing the Office 2007 version[^] of the driver, as suggested in this SO answer[^]. The 2007 drivers were 32-bit only, and shouldn't be blocked by the 64-bit version of Office 2010.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
I am currently working on a cbt software and i want the questions to be coming randomly ( one per page) which is working. Please how can i program Previous and Next button with WPF of VB.NET so user can skip and later go back before the exam finishes. Please help me. Have been on it for like 3 weeks now. thank you
At which point do you stuck ?
I think, at first you have to build up a kind of collection in which all Page-Contents are memorized, the selected answers and also the order of appearance.
After that you build up a Page, which has the 2 Buttons which increase or decrease the Collection-Pointer and which displays the Collection-Content at pointer-position.
I used a loop with total number of question a user can answer.. so when it clicks next. it gets incremented by one.. example Is a user can answer 10 questions and he is on number 7, he now moved back to question two, how do I program it to fetch what's on question two and when he is done , he won't see different questions from 4-7 he already did and also move on to complete the questions.. I am really struck there, please help me
As I have written before :
I would create a class which could memorize all the necessary information - for example the question-text, the given answer and so on (all what you think that you need).
Now you initialize your question-catalogue - each question is stored in this class-variable and the class is stored in the collection.
How much experience do you have with classes, collections, dynamic creation of classes ?
Could you imagine, what I tried to explain you ?
Last Visit: 31-Dec-99 18:00 Last Update: 2-Aug-15 13:14