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
Migration from NT4 PDC to 2003 AD... NT4 SP6 AWOL!
Command button code
VBA Control (Box) Design Questions
Changing the case, Forcing all caps in a vb.net Windows app
How can i hide root level of TreeView in Silverlight?
MS Access 2003 ... Add customized code to form created by Wizard
How do you automatically detect proxy settings for a VB.NET applciation using IWebProxy
How to change open directory in msoFileDialogOpen (Excel Vba)
Windows SBS 2008 DCPROMO fails - The Replication Operation Failed to Allocate Memory
query to show anything due in the current week