hey ya..
i tried another method to actually try to get the values in my formula..
so i changed my dim statements to this so that i can call the select statements and get the values..
Code:
Dim newTicket As Integer = (Convert.ToString(Me.DBSelect_NewTicketID))
Dim TotalTickets As Integer = (Convert.ToString(Me.DBSelect_TotalTickets))
Dim Quota As Double = (Convert.ToString(Me.DBSelectQuota))
Dim QuotaAns As Double
QuotaAns = (1 / (TotalTickets + 1)) * Quota
and then i debugged my programe and i had this error message sayin
"Line 1: Incorrect syntax near '1'."
Code:
Dim sql_adapter As New SqlDataAdapter(local_sqlCommand)
Dim dt As New DataTable
sql_adapter.Fill(dt)
If dt.Rows.Count > 0 Then
dt.PrimaryKey = New DataColumn() {dt.Columns("ID")}
End If
thrid line from the start shows this error..
any idea what is it??