Dear Gurus
here is my situation:
I am trying to auto populate form that Prints checks (Report 1401). There is a record in the original table GenJnlLine."Bank No." that I would like to pass to my Form so I go:
BankAcc2."No." := GenJnlLine."Bank No.";
(this is in request form-> C/AL code -> in Openform trigger. )
The value BankAcc2 in my form is still blank. Please help
0
Comments
It's hard to say... It could be the missing
This is what I have in the (second) Report - On OpenForm()
//- Populate Bank Account No. Begin
BankAcc2."No." := GenJnlLine."Bank No.";
//- Populate Bank Account No. End
IF BankAcc2."No." <> '' THEN BEGIN
IF BankAcc2.GET(BankAcc2."No.") THEN
UseCheckNo := BankAcc2."Last Check No."
ELSE BEGIN
BankAcc2."No." := '';
UseCheckNo := '';
END;
END;
Not quite sure what you're trying to do - you mention "Report" then "On Open Form"
are you trying to modify the report or form?
If you want to set a default bank account - you can drill into the Batch Name and set the type Bank Account & Enter a Bank Account #.
In fact you can create several batch names for different banks and set the default accounts for each one.
http://www.BiloBeauty.com
http://www.autismspeaks.org