D
dakota64
I am a newbie so please excuse the basic question. I have not been
able to find an answer to this. I am trying to modify an existing
application. The SQL database stores a value as a decimal. I need to
display the value in 2 text boxes, 1 for dollars and the other for
cents. Some of the numbers have a decimal value and some do not,
example - 1233, 44.55, 55.8.
I am using a datareader to retrieve the record . This is the code I
have
While dr.Read
Me.txtCustomerName.Text = dr(4)
Me.txtSSN.Text = dr(5)
Me.ddlState.SelectedValue = dr(6)
Me.txtMFDollar.Text = dr(7)
Me.txtMFCents.Text = dr(7)
Me.txtTLDollar.Text = dr(8)
Me.txtTLREfNumber.Text = dr(12)
Me.txtVLDollar.Text = dr(9)
Me.txtBankDollar.Text = dr(10)
Me.txtPhoenixDollar.Text = dr(11)
Me.txtVLREfNumber.Text = dr(12)
End While
I am trying separate the number for Me.txtMFDollar.text and
Me.txtMFCents.text
Thank you
able to find an answer to this. I am trying to modify an existing
application. The SQL database stores a value as a decimal. I need to
display the value in 2 text boxes, 1 for dollars and the other for
cents. Some of the numbers have a decimal value and some do not,
example - 1233, 44.55, 55.8.
I am using a datareader to retrieve the record . This is the code I
have
While dr.Read
Me.txtCustomerName.Text = dr(4)
Me.txtSSN.Text = dr(5)
Me.ddlState.SelectedValue = dr(6)
Me.txtMFDollar.Text = dr(7)
Me.txtMFCents.Text = dr(7)
Me.txtTLDollar.Text = dr(8)
Me.txtTLREfNumber.Text = dr(12)
Me.txtVLDollar.Text = dr(9)
Me.txtBankDollar.Text = dr(10)
Me.txtPhoenixDollar.Text = dr(11)
Me.txtVLREfNumber.Text = dr(12)
End While
I am trying separate the number for Me.txtMFDollar.text and
Me.txtMFCents.text
Thank you