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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

VBA to set Cash Receipt Number

(0) ShareShare
ReportReport
Posted on by 202

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
    14,157 Most Valuable Professional on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 495 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 432 Super User 2026 Season 2

#3
CU10121822-0 Profile Picture

CU10121822-0 366

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans