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
SQL Problem: Property Owner is not available for Database '[databasename]'. This property may not exist for this object, or may not be retrievable due to insufficient access rights.
Win Svr 2003 w/ NT 4
can you help me? the problem in registering DTS dll files.
TransferSpreadsheet Action Failed - Weird Problem???
Save unbound combobox column value in Access 2007
Rename "Pinned" Remote Desktop Connections
What is the least expensive way to buy Office 2007 for a developing-nation country?
Need Subreport and main report to return same data
SUMPRODUCT not working
Late bindingan ActiveX component