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
Subform Problems, Method Form of object Subform failed
Fast loading items into DataGridView or similar control
DefaultAppPool Crashes
Help capturing timeit output
Controlling users with Microsoft Access 2007
Can I upgrade a "30 Day Trial" version of Windows Vista to a full Version of Windows 7?
Event ID 3001 - atkctrs - Unable to Open ATK device for R access.
Grid View filtering
Installing Visual Web Developer 2008 Express
Activate (Requery) a Combo Box w/ VBA