The primarykey in my general_billing table is autoincrement but when i call the function to add to the database, thy primarykey column wont autoincrement. Can some please give direction?
call from UIClass
g_billing = new GeneralBilling(Nothing, "test","test", "test")
Dim connection As New Connection
connection = New Connection
MsgBox(getID)
Dim sql_insert As String = "INSERT INTO general_billing"
"(serviceID, service_name, measurement_unit, cost) VALUES (" & _
getID() & ", '" & getName & "', '" & getUnit & "', " & getCost & ");"
---------------------
general_billing.
vb
connection.ConnectToDB(sql_insert)