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
Trying to connect to windows xp print server using windows 7
Validate front end server configuration error
SAGE 2009 AND WINDOWS 2008 TERMINAL SERVER
Move Sysvol and NTDS
create Pipe delimited output file from Access table
Solve duplicated numbers by Excel or Access
Downloads freeze Win98SE Laptop, but surfin' works fine
Userform Search
Need to query if a field starts with "+1"
Windows 7 Remote Desktop Connection Error