Jumat, 21 April 2017

Re: [MS_AccessPros] How to Declare Field Variables in SQL?

 

Greg-

Is that expression in a query that's the Record Source for your report?  It should work as long as frmQueryByDate is open and has controls called L_Date and U_Date.  It might help if you were to post the entire SQL statement.

John Viescas, author
Effective SQL
SQL Queries for Mere Mortals
Microsoft Office Access 2010 Inside Out
Microsoft Office Access 2007 Inside Out
Building Access Applications

On Apr 21, 2017, at 20:00, xenon.blue@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:

Hi there folks,

I appreciate that there is forum of like minded people to help with Access issues as there are always many to navigate.

My issue is simple for the pros. I am trying to create a report based on a nested query which pulls the information without a problem. The query data is filtered by specifying a lower and upper date. For example:


Between [Forms]![frmQueryByDate]![L_Date] And [Forms]![frmQueryByDate]![U_Date]



When I run the report that contains a line chart, I get the following error message:


MS Access does not recognize  "[Forms]![frmQueryByDate]![L_Date]" as a valid field or expression


I believe this may be due to not specifically declaring the input fields from the form as parameters in the SQL statement. 


Can someone please help me on how to overcome this issue?


Thank you.


Greg


__._,_.___

Posted by: John Viescas <johnv@msn.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

Tidak ada komentar:

Posting Komentar