'------------------------------------------------------------
' sortdown_stock
'
'------------------------------------------------------------
Function sortdown_stock()
On Error GoTo sortdown_stock_Err
DoCmd.GoToControl "stock-no" 'set focus on field ,control you want to sort
DoCmd.RunCommand acCmdSortAscending 'sort ascending or deascending
'or insert event procedure (onclick) on your button
'DoCmd.GoToControl "stock-no"
'DoCmd.RunCommand acCmdSortAscending
sortdown_stock_Exit:
Exit Function
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.