var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Adding values
I am tryin to add 3 values together
Me.txtHours = ((Me.txtSetHr.value) + (Me.txtRunHr.value) + (Me.txtDownHr.value))
but I am getting 123 instead of 6. it is concatenating them rather than adding them.
Me.txtHours = (CSng(Me.txtSetHr.value) + CSng(Me.txtRunHr.value) + CSng(Me.txtDownHr.value))
What does the CSNG mean ?
Access has a whole lot of conversion functions this being one of them
CSng = Convert to single data type
To see them all open the vb editor and it's help search for cval or csng
Basically what was happening was the values were text so it was the same as entering
Me.txtSetHr.value & Me.txtRunHr.value & Me.txtDownHr.value
Converting them to numbers of some sort allowed VBA to evaluate them as numbers etc.