Microsoft
Software
Hardware
Network
Question : handling empty textboxes
Hello,
I have a form that adds values for different days up.
depending on data- some textboxes do not get a number inputed into them.
I declare variables like: Dim DayOne As Double
then for each variable I write: DayOne = IsNull(Me.txtDayOne), 0, Me.txtDayOne)
then I finish by saying me.Total = DayOne + DayTwo + etc.........
this works - I am just wondering if this is acceptable code
thank you
Answer : handling empty textboxes
DayOne = IIF(IsNull(Me.txtDayOne), 0, Me.txtDayOne)
davetough,
if it is working why not..
i don't see anything wrong with that...as you describe it..
Random Solutions
Interuption to my start-up
Decommission temp DC in 2008, giong to 2008 R2 domain
RPC/HTTP won't accept password on Exchange 2007 unless the Default Web Site is restarted
Setting folder and file permissions in C#
SQL Express 2005 ODBC Connection Error 67 and 17
Runtime error 48. Error Loading .dll
Email report in PDF gives error
closing form without saving
Enter data in a MSFlexgrid control
New Windows 2008 Server - 8 GB of memory, 3gb free nothing on it?