Jumat, 21 April 2017

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

 

Charts quite often use a crosstab query as the row source. I expect this is the case and crosstabs require you to declare the data types of parameters.  If you don't, you get an error message "MS Access does not recognize.."


Regards,

Duane Hookom

Switzerland




From: MS_Access_Professionals@yahoogroups.com <MS_Access_Professionals@yahoogroups.com> on behalf of xenon.blue@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com>
Sent: Friday, April 21, 2017 1:00 PM
To: MS_Access_Professionals@yahoogroups.com
Subject: [MS_AccessPros] How to Declare Field Variables in SQL?
 


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: Duane Hookom <duanehookom@hotmail.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (5)

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