Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > BOOK: Beginning VB.NET Databases
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 26th, 2005, 09:50 AM
Registered User
 
Join Date: Apr 2005
Location: , , .
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 ??????????


Reply With Quote
  #2 (permalink)  
Old April 26th, 2005, 10:08 AM
Registered User
 
Join Date: Apr 2005
Location: , , .
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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:28 AM.


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