I've made this little modification to "Sales Documents Print Options" screen to default 'Currency to Print' to Originating. This works and does what intend it to do.
But now, when I open 'Sales Transaction' Window and click on the print button (without opening any sales doc) it brings up the Print options screen with a Run-time Error, below
it says that we've set a default value to a disabled field.
this is not a hindrance to day to day work but still is there a way to remove this ?
Thanks
*This post is locked for comments
Thanks
I figured this out :)
works alright on AfterActivate, however I'll take your advice and change it to AfterOpen
Cheers
David has the correct answer here. Sorry for my original answer.
Tim
Hi Sinnerv
You can only change a value of a field that is editable.
You might need to check if the field is enabled first and wrap your code with an If then Endif.
If CurrencyToPrint.Enabled = True Then
CurrencyToPrint.Value = 2
EndIf
David
PS: You might want to use the AfterOpen event rather than AfterActivate. Activate occurs every time you click on the window after being on another window.
I know for a fact that we use multi-currency and we have it enabled
How you checked it?
yes we have multicurrency installed
Do you have Multicurrency Installed or not?
Please reply this first and do not try to unlock /Enable any field which is locked by gp default procedures, it will mess up things.
<Content Removed>
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,232 Super User 2024 Season 2
Martin Dráb 230,064 Most Valuable Professional
nmaenpaa 101,156