Errors of Navision syntax

madaNOVmadaNOV Member Posts: 13
edited 2006-01-19 in Navision Attain
Hello,

I have a very strange situation:I get an error when i write for ex. FORM.RUNMODAL(FORM::"Customer Card",Customer) saying that "The variable is not a record.'Variable.Field' is invalid".The error refers to "FORM.RUNMODAL".

Can somebody tell me what can i do????? :(

Comments

  • kinekine Member Posts: 12,562
    Check, if you do not have for example field with name Customer inn the Rec record...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    Try to use the navision naming conventions.

    A variable record of the customer table is called Cust

    Like

    G/L Account = GLAcc
    Customer = Cust
    Vendor = Vend
    etc.

    If you make a field for the customer number it is called

    Customer No.
    Vendor No.
    Item No.

    This way it can never go wrong.
Sign In or Register to comment.