3 Topics

Member Avatar for
Member Avatar for Mike Bishop

i have a calculation and the results are outputting like so 96.5471447543161 i would like to format this text box to only show 96.54 (no rounding) below is the code i am using. [CODE] Dim d1 As Double = Nothing d1 = ((Val(Me.txtgoodsout.Text) + (Val(Me.txtnrft.Text))) / Val(Me.txtrawin.Text)) * 100 Me.txtyield.Text …

Member Avatar for bLuEmEzzy
0
128
Member Avatar for horserider

How do I insert commas to numbers so I can convert 1000 to 1,000 or 1000000 to 1,000,000. [CODE] FileSize = GetSize(MyFile).ToString & " KB" [/CODE] the output would be "6652 KB" i m trying to get output 6,652 KB Plz try to modify this code only.

Member Avatar for horserider
0
162
Member Avatar for bestex

[CODE] IsConnected("Select count(ID) from transaction", False) If myDR.Read = True Then Me.TextBox1.Text = myDR.GetValue(0) + 1 Else Me.TextBox1.Text = 1 End If TextBox1.Focus() End If[/CODE] im going to ask how can i make my autonumber like these "10001" instead of "1" can anyone help me to fix my code??

Member Avatar for codeorder
0
138

The End.