Ok not a problem - it looks like you are doing this within the OnSelect of the icon - the icon cannot have 'Accounts' data source as a condition within an If check on its OnSelect
- your txtInput should have a default of:
searchAcctNameGlobal
- and your Gallery should have an Items set to:
If(IsBlank(searchAcctNameGlobal), Accounts, Search(Accounts, searchAcctNameGlobal, "name"))
Also, just to confirm - the column name within your datasource is 'name' and is not a different internal name like 'AccountName'?