Search code examples
ms-accessdefault-value

How to Default a Form Field Value from a Table Field Value? (MS Access)


How to Default a Form Field Value from a Table Field Value?

I have a [Table].[Field] called [Local_Role_Filter].[Role]. It will only ever have 1 record.

How do I use the value within [Local_Role_Filter].[Role] as the Default of a Form Field Value?

I've been searching all day long, but I'm still stuck. Any help would be greatly appreciated!


Solution

  • In Default Value field of property box of textbox use

    =DLOOKUP("[Role]","[Local_Role_Filter]")
    

    enter image description here