Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > BOOK: Beginning VB.NET Databases
|
BOOK: Beginning VB.NET Databases
This is the forum to discuss the Wrox book Beginning VB.NET Databases by Thearon Willis; ISBN: 9780764568008
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 26th, 2005, 09:50 AM
Registered User
 
Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default TimeSheet: Hours changeback to zeroes

Hi,

I am getting a problem on the TimeSheet form.

I bring a new timesheet up which has zeroes in each cell. I then enter a number of hours into one of the cells and key to the next cell. The cell I have just left returns to zero (aaargh !).

On enetering debug mode I put a breakpoint in the grdTimeSheet_CurrentCellChanged sub Procedure and something doesn't look right. The code in this section iterates through each row in the
objTimeSheetDV data view checking the value of each day's hours in order to set the total in the Total Hours row. However, the hours item is always zero ... even for the cell that I have just entered a value.

When I try to reason this out, surely the code should be referencing the DataGrid itself rather than the DataView (which cannot have been updates surely). OR ? are the DataGrid and DataView bound together and therefore interchangeable ??????????


 
Old April 26th, 2005, 10:08 AM
Registered User
 
Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Found out what the problem was ... I was entering fractional hours (e.g. 7.5) ... if I enter whole numbers there is no problem






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to subtract hours from sysdate in oracle mcmouli Oracle 4 January 7th, 2011 06:52 AM
TimeSheet emeka Pro VB Databases 0 March 31st, 2007 02:17 AM
Timesheet hour value problem geoffers BOOK: Beginning VB.NET Databases 5 August 24th, 2005 04:30 AM
Accummulated Man-Hours mateenmohd SQL Server 2000 0 July 15th, 2005 11:31 AM
9 hours later still trying to do a login script sand133 VB.NET 2002/2003 Basics 5 June 24th, 2004 10:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.