Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Is there a way to default the Promised Date to 0/0/0000 on a Purchase Order

Posted on by 55

By default I see that the Promised Date is set to today's date. I would like to change the default date to 0/0/0000 so that it will more meaningful when a user actually puts in a real date.

*This post is locked for comments

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Is there a way to default the Promised Date to 0/0/0000 on a Purchase Order

    You could try a form load event or after(leave) the PO number since they need to leave that field to get to the vendor ID. I am not sure of any events happening under the hood on that screen so you will need to test.

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Is there a way to default the Promised Date to 0/0/0000 on a Purchase Order

    Try adding this to the VBA code. I added the Date Detail button to VBA.

    Private Sub Window_AfterActivate()

       PromisedDate = RequisitionDate

    End Sub

  • UriZ Profile Picture
    UriZ 55 on at
    RE: Is there a way to default the Promised Date to 0/0/0000 on a Purchase Order

    I placed your code but the date still defaults to today's date.

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Is there a way to default the Promised Date to 0/0/0000 on a Purchase Order

    I put this on the PurchaseOrderEntry(Window)

    Private Sub Window_BeforeOpen(OpenVisible As Boolean)
        PromisedDate = RequisitionDate
    End Sub

    Since RequisitionDate defaults to "0/0/0000" I use this value.

  • UriZ Profile Picture
    UriZ 55 on at
    RE: Is there a way to default the Promised Date to 0/0/0000 on a Purchase Order

    Hi Richard, I can't figure out which event to place the code to default the Promised Date. Keep in mind that the user may not even open the Purchase Date Entry window. I am able to set default if they open the window but if they just save the PO from the Purchase Order Entry window, how do I set the default. Thanks.

  • UriZ Profile Picture
    UriZ 55 on at
    RE: Is there a way to default the Promised Date to 0/0/0000 on a Purchase Order

    Thanks Richard, much appreciated!

  • Verified answer
    Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Is there a way to default the Promised Date to 0/0/0000 on a Purchase Order

    When you are on the purchase order screen, if you go to Tools->Customize are the Visual Basic options active or dim? If they are active you will add this form and the date field to the VBA project. This will create a file called DYNAMICS.VBA. You can then copy it from computer to computer. You do need to be licensed for the Customization Suite to access these tools.

  • UriZ Profile Picture
    UriZ 55 on at
    RE: Is there a way to default the Promised Date to 0/0/0000 on a Purchase Order

    Thank you Richard. We do have people that can do that, we just need to know where to put it. We are new to GP.

  • Verified answer
    Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Is there a way to default the Promised Date to 0/0/0000 on a Purchase Order

    A small piece of VBA code could handle that. Do you have anyone there who can do that?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans