I am trying to make an easy way for users unfamiliar with Access to filter the account transactions in an Access 2010 database to show entries made between two dates. The query (SQL below) is supposed to show the form FrmEntryDateRange (picture attached) for the user to enter the dates. Instead it shows the Enter Parameter Value form (picture attached). The query is run by clicking a button on the main form. It works the same way when it is run using he Access Run button. The query itself is identical to the query that correctly displays the account transactions unfiltered, except for the WHERE clause. How can I make this work as intended?
SELECT [Account Transactions].*, Categories.*, IIf([Categories].[Income/Expense]="Expense",-([Account Transactions]![Transaction Amount]),[Account Transactions]![Transaction Amount]) AS [Actual Amount], [Account Transactions].[Entry Date]
FROM [Account Transactions] LEFT JOIN Categories ON [Account Transactions].Category = Categories.ID
WHERE ((([Account Transactions].[Entry Date]) Between [Forms]![FrmEntryDateRange]![TextFromDate] And [Forms]![FrmEntryDateRange]![TextToDate]))
ORDER BY [Account Transactions].[Entry Date];
SELECT [Account Transactions].*, Categories.*, IIf([Categories].[Income/Expense]="Expense",-([Account Transactions]![Transaction Amount]),[Account Transactions]![Transaction Amount]) AS [Actual Amount], [Account Transactions].[Entry Date]
FROM [Account Transactions] LEFT JOIN Categories ON [Account Transactions].Category = Categories.ID
WHERE ((([Account Transactions].[Entry Date]) Between [Forms]![FrmEntryDateRange]![TextFromDate] And [Forms]![FrmEntryDateRange]![TextToDate]))
ORDER BY [Account Transactions].[Entry Date];