Following is an example in C#-
QueryService<Account> accountQueryService2 = new QueryService<Account>(context);
Account account21 = accountQueryService2.ExecuteIdsQuery("Select * From Account where AccountType='" + AccountTypeEnum.AccountsReceivable+"'").FirstOrDefault<Account>();
Can you map it to VB syntax?