Hello.
Long story short, I am trying to set default value property to a field in a form to be the last/max CustomerID (which is autonumber) from a different table than the one the form is associated with.
So far I've tried many expressions, but they always end up showing #name? error. Currently I'm using "=DLast([tblCustomer]![CustomerID];[tblCustomer])"
I read that that error may appear due to taken alias or something, so I tried changing CustomerID to something else, but the error persists.
I have GoToRecord New macro set to the form when it opens. What is interesting, if I open the form and press "Refresh All" in the ribbon, it somehow shows what I need (the most recently added ID from table tblCustomers in the form's field "Customer ID").
Thanks already!