Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Program help please!
#12
it's because gross sales is a single precision variable. so qb, as your computer in general, will round off on calculations with numbers as large as the ones you have. at least i think. try this:

dim grossSales as double

at the top of your program and see if it makes any more mistakes, or even fewer.
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Reply


Messages In This Thread
Program help please! - by SeeSpot - 03-01-2003, 01:11 AM
Program help please! - by pr0gger - 03-01-2003, 01:37 AM
Program help please! - by SeeSpot - 03-01-2003, 01:52 AM
Program help please! - by pr0gger - 03-01-2003, 02:08 AM
Program help please! - by SeeSpot - 03-01-2003, 10:32 AM
Program help please! - by toonski84 - 03-01-2003, 10:56 AM
Program help please! - by SeeSpot - 03-01-2003, 11:27 AM
Program help please! - by SeeSpot - 03-01-2003, 11:31 AM
Program help please! - by SeeSpot - 03-03-2003, 04:24 AM
Program help please! - by toonski84 - 03-03-2003, 04:51 AM
Program help please! - by SeeSpot - 03-03-2003, 05:06 AM
Program help please! - by toonski84 - 03-03-2003, 05:13 AM
Program help please! - by SeeSpot - 03-03-2003, 05:24 AM
Program help please! - by SeeSpot - 03-03-2003, 05:42 AM
Program help please! - by pr0gger - 03-03-2003, 05:58 AM
Program help please! - by SeeSpot - 03-03-2003, 06:29 AM
That's not a bug... - by Glenn - 03-03-2003, 08:22 AM
Program help please! - by SeeSpot - 03-03-2003, 10:52 AM
Program help please! - by toonski84 - 03-03-2003, 02:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)