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
Vista Boot Error
Edit multiple .txt documents via a batch program
Strip HTML from search results
Outlook 2007 Calendars Updating Shared Calendar only updates Personal Calendar
Can't exit design mode because control can not be created
Automated backup fails - 'specified media cannot be found'
Userenv 1054, DnsApi 11197 and Dhcp 1003 event viewer logs
advice on gas mileage query in a fleet management database
Can you delete OCS Address Book groups?
Using a geometry type check constrint in sql sever 2008