Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing the presentation mask of a field within a accpacviewlist

Status
Not open for further replies.

ryslepel

Programmer
Jun 8, 2007
14
ZA
Is it possible to change the presentation mask of a field when using an accpacViewList.

I would like to change something trivial like changing an amount from 3 decimal places to two decimal Places.

Please Help
 
When you do the column names set the allow custom data to true.

Then add following function

Private Sub grdCredit_OnSetCustomItemData(ByVal bstrColName As String, ByVal bstrFieldName As String, pvBookMark As Variant, bstrData As String, pAccpacDSFields As Object)
bstrData = Format(pAccpacDSFields.Item("TRANSAMT").Value, "###,###,###,##0.00")
End Sub

Solved my own little problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top