Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP forum
Suggested answer

VBA to set Cash Receipt Number

Posted on by 190

Trx - Sales - Cash Receipts only allow one running number.

the need is to have different running number by checkbook, as stated in Batch Header.

the running number is stored using DUOS, by each checkbook.

when cash receipt is saved, and focus is at cash receipt number (which is show the next number as per sales setup),

(I use VBA to read the next running number by checkbook stored in DUOS), but I am not able to change / set the cash receipt number.

I have try:

Me.Receipt.Focus(next checkbook cash receipt number)

Me.Receipt.value = (next checkbook cash receipt number)

sendkeys (next checkbook cash receipt number)

but all above are not working.

appreciate any helps.

thanks in advance.

  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,837 Moderator on at
    RE: VBA to set Cash Receipt Number

    Hi Lo

    VBA cannot change a field that is locked.

    GP Power Tools which uses Dexterity can.

    VBA is "End of Life" too, so I would start to look for alternatives.

    https://winthropdc.wordpress.com/2019/08/12/gppt-replacing-vba-with-gp-power-tools-developer-tools/

    Regards

    David

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,645 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Product updates

Dynamics 365 release plans