Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
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.

Categories:
  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,928 Most Valuable Professional 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

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

Product updates

Dynamics 365 release plans