Re: Display combo box for just one company
Here's some VBA code that should do it.
While in Customize Mode, select Visual Basic Editor from the Customize menu. From the code window that appears, choose Form1 from the drop down box at the top on the left, and Load from the drop down box at the top on the right.
This should insert this into your code window:
Private Sub Form1_Load
End Sub
Between these two lines, paste this code but change the "ABC" to the CpnyID that you want this to visible in, and "cdocdesc" (in 2 places) to the name of the combo box you added.
Dim strCpnyID As String
Call GetBufferValue("bpes.CpnyID", strCpnyID)
If Trim(strCpnyID) = "ABC" Then
Call setprop("cdocdesc", PROP_VISIBLE, False)
Else
Call setprop("cdocdesc", PROP_VISIBLE, True)
End If
From the Visual Basic Editor, choose File, Close and Return to Solomon Screen and then save your customization like normally. Close the screen and re-open it and the combo box should show (or not) based on the company you are logged into.