I have a form (Checks) for auditing passwords. 2 comboboxes on that form, TeamNamecbo and AccountTypecbo referenced from Accounts Table. Within the accounts form I also have a field called PasswordRequirements.
On the Checks form I want an unbound txt box that looks up the PasswordRequirements from accounts when TeamNamecbo and AccountTypecbo are entered.
I have composed the below dlookup which when placed in the txt boxes control source returns the very first PasswordRequirements entry it finds from Accounts table as soon as the form is loaded and combo boxes are blank.
=DLookup("PasswordRequirements", "Accounts", "[TeamName]=" & Forms!checks!TeamNamecbo And "[AccountType]=" & Forms!checks!AccountTypecbo)
Can I place some kind of requery on the combo boxes or place the lookup somewhere else so it updates correctly dependant on the data from the combo boxes?