web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Hide Inactive Checkbook IDs on the Checkbook list

(0) ShareShare
ReportReport
Posted on by

We have multiple accounts that are no longer used.  They are all marked "inactive" but I can't figure out a way to either hide the inactive Checkbook IDs or sort by Active / Inactive.  They just show up on the list with a check mark in the inactive box.

I'm on GP2010, Microsoft Dynamics GP 11.00.2248 (SP4). 

Can anyone help?

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    When I said "accounts" I meant bank accounts / checkbooks.

  • Suggested answer
    Almas Mahfooz Profile Picture
    11,009 User Group Leader on at

    I don't see any way to restrict displaying inactive checkbooks on the list (or lookup) other than by doing it through a customization.

  • Suggested answer
    L Vail Profile Picture
    65,271 on at

    Hi, it's really pretty easy to filter records in a scrolling window using VBA. Use the BeforeLinePopulate event and check the status of the inactive box. If it's marked you just set the value of RejectLine to 'true' and you will not see that record in the scrolling window. If you have hundreds of checkbooks it will take a little longer to populate, but I think you would like having your list cleaned up. This trick won't work on the Web client, but it's perfect on the regular client. You can do this easily with just a few lines of VBA code. Let me know if you need any help, this wouldn't take that long to create.

    Kind regards,

    Leslie

  • INTEL Profile Picture
    25 on at

     The only option beside vba would be to use the professional tools checkbook modifier and change the checkbook ID.  Add a z_ in front so they show in the bottom of the list.  

  • Robyn Profile Picture
    1,753 on at

    We are trying to do this for a client.  The Inactive field is not adding to VBA.  How do we check the status of it?  I have done code like this before with Wennsoft and Job cost....like below.  But what I remember in the past with SOP we added a grid field and restricted off of that field.  I have attempt the Inactive box on both the core GP Checkbooks window/Checkbooks Detail (grid) and the SmartList version of it.  No luck.  Suggestions?  Feel like I am missing something simple.

    Private Sub Grid_BeforeLinePopulate(RejectLine As Boolean)
    'Get the UserInfo object
    Set UserInfoObj = VbaGlobal.UserInfoGet()
    'Retrieve and display the user ID
    UserID = UserInfoObj.UserID
    'MsgBox UserID

    Dim cn As New ADODB.Connection
    Dim rst As New ADODB.Recordset
    Dim cmd As New ADODB.Command

    Set cn = UserInfoGet.CreateADOConnection
    cn.DefaultDatabase = UserInfoGet.IntercompanyID
    cn.CommandTimeout = 120
    cmd.ActiveConnection = cn


    Dim Class As String
    Dim WSIDUser As String
    Dim JobCount As Integer
    cmd.CommandText = "Select USRCLASS as CLASS from Dynamics.dbo.SY01400 WHERE USERID = '" & UserID & "'"
    Set rst = cmd.Execute
    Class = Trim(rst!Class)
    'MsgBox Class
    If Class = "ACCTG" Then GoTo LINEEND

    ' Read the UserID and get the Employee ID associated with that user.
    cmd.CommandText = "Select WS_Manager_ID as WSID FROM JC41001 WHERE USERID = '" & UserID & "'"
    Set rst = cmd.Execute
    'MsgBox Trim(rst!WSID)
    WSIDUser = Trim(rst!WSID)
    'MsgBox WSJobNumber

    If Class = "DISPATCH" Then
    cmd.CommandText = "select EMPLOYID as EMPID, USERDEF1 as NEWUSER From UPR00100 where EMPLOYID = '" & WSIDUser & "'"
    Set rst = cmd.Execute
    WSIDUser = Trim(rst!NEWUSER)
    End If

    cmd.CommandText = "Select count(WS_Job_Number) as JN from JC00102 where (Estimator_ID ='" & WSIDUser & "' or WS_Manager_ID = '" & WSIDUser & "') and WS_Job_Number = '" & WSJobNumber & "'"
    Set rst = cmd.Execute
    JobCount = rst!JN
    If JobCount = 0 Then
    RejectLine = True
    End If

    LINEEND:

    rst.Close

    End Sub

  • Robyn Profile Picture
    1,753 on at

    This may be my issue....community.dynamics.com/.../38255

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans