T
TotallyConfused
I am trying to follow the instructions on the Access Microsoft Office page on
Creating a Form that collects Report Parameters from the following link
office.microsoft.com/en_us/access/HA100963141033.aspx?mode=print and I am
stuck on the following step. My understanding of this is that I needd to add
the following: Between [Forms]![Parameter Collector]![Beginning Date] And
[Forms]![Parameter Collector]![Ending Date] in the query of the report.
I do not have date fields in my query for this report. Do I have to have
them? I do not need to store these dates in my db. I just need to enter
these dates in the report to be able to print or send via fax. Can you
please help on how I can revise this? What do I need to do? Thank you.
Step 5: Enter the criteria in the underlying query or stored procedure for
the report
Open the underlying query or stored procedure for the report in Design view.
Enter the criteria for the data. In the expression (expression: Any
combination of mathematical or logical operators, constants, functions, and
names of fields, controls, and properties that evaluates to a single value.
Expressions can perform calculations, manipulate characters, or test data.),
use the Forms object, the name of the form, and the names of the controls
(control: A graphical user interface object, such as a text box, check box,
scroll bar, or command button, that lets users control the program. You use
controls to display data or choices, perform an action, or make the user
interface easier to read.) in the criteria:
For example, in an Access database (.accdb or .mdb), for a form named
Parameter Collector, you use the following expression to refer to controls
named Beginning Date and Ending Date in the query:
Between [Forms]![Parameter Collector]![Beginning Date] And
[Forms]![Parameter Collector]![Ending Date]
In an Access project (Microsoft Access project: An Access file that connects
to a Microsoft SQL Server database and is used to create client/server
applications. A project file doesn't contain any data or
data-definition-based objects such as tables and views.) (.adp), you must
first explicitly name the parameters in the stored procedure, for example:
@Beginning_Date datetime, @Ending_Date datetime
You then use those parameters in the WHERE clause, for example:
WHERE Sales.ShippedDate Between @Beginning_Date And
Creating a Form that collects Report Parameters from the following link
office.microsoft.com/en_us/access/HA100963141033.aspx?mode=print and I am
stuck on the following step. My understanding of this is that I needd to add
the following: Between [Forms]![Parameter Collector]![Beginning Date] And
[Forms]![Parameter Collector]![Ending Date] in the query of the report.
I do not have date fields in my query for this report. Do I have to have
them? I do not need to store these dates in my db. I just need to enter
these dates in the report to be able to print or send via fax. Can you
please help on how I can revise this? What do I need to do? Thank you.
Step 5: Enter the criteria in the underlying query or stored procedure for
the report
Open the underlying query or stored procedure for the report in Design view.
Enter the criteria for the data. In the expression (expression: Any
combination of mathematical or logical operators, constants, functions, and
names of fields, controls, and properties that evaluates to a single value.
Expressions can perform calculations, manipulate characters, or test data.),
use the Forms object, the name of the form, and the names of the controls
(control: A graphical user interface object, such as a text box, check box,
scroll bar, or command button, that lets users control the program. You use
controls to display data or choices, perform an action, or make the user
interface easier to read.) in the criteria:
For example, in an Access database (.accdb or .mdb), for a form named
Parameter Collector, you use the following expression to refer to controls
named Beginning Date and Ending Date in the query:
Between [Forms]![Parameter Collector]![Beginning Date] And
[Forms]![Parameter Collector]![Ending Date]
In an Access project (Microsoft Access project: An Access file that connects
to a Microsoft SQL Server database and is used to create client/server
applications. A project file doesn't contain any data or
data-definition-based objects such as tables and views.) (.adp), you must
first explicitly name the parameters in the stored procedure, for example:
@Beginning_Date datetime, @Ending_Date datetime
You then use those parameters in the WHERE clause, for example:
WHERE Sales.ShippedDate Between @Beginning_Date And