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
Vlookup and slow performance
constant scan in execution plan
cannot install hp oem sbs2008 on hp server running esxi 4.0 Update 1
After reinstallation of XP on old system, no networking available
Access XP Popup Form_GotFocus/Form_Activat<wbr />e
SQL to query Order details in GP
SQL Query help
OCS 2007 R2 auto sign in works, manual doesn't
Restrict Access to SQL 2008
MS Access OR SQL Server 2008 Express