handler required "select(MAX).."
Posted: Tue Mar 18, 2014 1:44 am
i am trying to get the MAX number in my database column and adding 1 on it to create another MAX number on my next select.
i try this one and its working as my sample
http://www.w3schools.com/sql/sql_func_max.asp
The problem is it require a handler and a parameter. I don't have an idea where do I put my handler so far this is my code
any suggestion will do.
thanks,
blaireTabay
i try this one and its working as my sample
http://www.w3schools.com/sql/sql_func_max.asp
The problem is it require a handler and a parameter. I don't have an idea where do I put my handler so far this is my code
Code: Select all
if connectionID is a number then
put fld "lblOrderNum" into orderNum
put "Select MAX(orderNumber) from hos_tbldrorders" into tabay
put revDataFromQuery(,,connectionID, tabay) into order
put order + 1 into orderNum
else
answer warning "Cannot conenct to SERVER DATABASE please try again" titled "Connection Error"
end if
thanks,
blaireTabay