J
Jack Leach
Hello and thanks in advance...
I've download Visual Basic 2008 Express edition with the intent to create
some glorified calculators, and was wondering if someone may be able to
supply any links or recommended books for learning the basics of VB.
I'm (fairly) fluent in VBA, having written a few data management
applications with MS Access, so I'm not a complete dunce with programming.
Aside from that, there's two things I'm wondering about at the moment, maybe
someone could help with (building a labor cost calculator):
1) Datatypes for text in a textbox... With VBA in Access, a bound textbox
is set to a specific datatype. My textboxes in VB are unbound, and therefor
do not seem to have a specific datatype (they all default to a string?). Is
there a default setting that I can use to make sure that a numberic value is
entered into the textbox, or do I need to check validate this using the
IsNumeric function for each textbox...
2) Formats in a textbox... in my control txtLaborRate, I would like this to
be formatted as currency. I perused the properties of the control but
haven't come across anything I recognize to set a default format. So I tried
putting some code behind the control using the
FormatCurrency(Me.txtLaborRate.Text) function, but haven't gotten the results
I was looking for. In the meantime I'll continue playing around with it.
Any help would be great!
Thanks,
--
Jack Leach
www.tristatemachine.com
"I haven't failed, I've found ten thousand ways that don't work."
-Thomas Edison (1847-1931)
I've download Visual Basic 2008 Express edition with the intent to create
some glorified calculators, and was wondering if someone may be able to
supply any links or recommended books for learning the basics of VB.
I'm (fairly) fluent in VBA, having written a few data management
applications with MS Access, so I'm not a complete dunce with programming.
Aside from that, there's two things I'm wondering about at the moment, maybe
someone could help with (building a labor cost calculator):
1) Datatypes for text in a textbox... With VBA in Access, a bound textbox
is set to a specific datatype. My textboxes in VB are unbound, and therefor
do not seem to have a specific datatype (they all default to a string?). Is
there a default setting that I can use to make sure that a numberic value is
entered into the textbox, or do I need to check validate this using the
IsNumeric function for each textbox...
2) Formats in a textbox... in my control txtLaborRate, I would like this to
be formatted as currency. I perused the properties of the control but
haven't come across anything I recognize to set a default format. So I tried
putting some code behind the control using the
FormatCurrency(Me.txtLaborRate.Text) function, but haven't gotten the results
I was looking for. In the meantime I'll continue playing around with it.
Any help would be great!
Thanks,
--
Jack Leach
www.tristatemachine.com
"I haven't failed, I've found ten thousand ways that don't work."
-Thomas Edison (1847-1931)