PC Review


Reply
Thread Tools Rate Thread

Access - Graph, ComboBox and Microsoft Jet problem

 
 
New Member
Join Date: Sep 2008
Posts: 5
 
      2nd Sep 2008
Hi all,

I'm having some trouble for doing my application in MS Access 2003:

I try to do a graph that is based in a query. One of the query's parameters is a ComboBox, located at the same form that my graph.

If i launch the query alone, it goes ok. My problem is when i launch the form with the graph, i receive a message "The Microsoft Jet database engine does not recognize 'Forms!F_stat!PROD2' as a valid field name or expression."

Here are my query's and the graph codes:

query:
Code:
PARAMETERS PROD2 Text ( 255 ), TYP_PROD2 Text ( 255 );
SELECT T_vent.SEMAINE, T_vent.PROD, T_vent.TYPE, T_vent.MAG, Count(T_vent.CPTE) AS nb_op, Sum(T_vent.MONTANT) AS SommeDeMONTANT
FROM T_vent
GROUP BY T_vent.SEMAINE, T_vent.PROD, T_vent.TYPE, T_vent.MAG
HAVING (((T_vent.PROD)=[Forms]![F_stat]![PROD2]) AND ((T_vent.TYPE)=[Forms]![F_stat]![TYP_PROD2]));
graph:
Code:
TRANSFORM Sum([nb_op]) AS [SommeDenb_op] SELECT [SEMAINE] FROM [R_prod_hebdo] GROUP BY [SEMAINE] PIVOT [MAG];
My form's name is F_stat, there are 2 ComboBox PROD2 and TYP_PROD2

thank you in advance for all tips,
 
Reply With Quote
 
 
 
 
New Member
Join Date: Sep 2008
Posts: 5
 
      2nd Sep 2008
I found the problem's solution: it has to be the complete adress in the query's parameters dialog box: [Forms]![F_stat]![PROD2]
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Problem: Combobox.setfocus fires combobox.OnClick event Hal Levy Microsoft Access Form Coding 5 31st Jul 2009 03:54 AM
Access & Microsoft Graph AlCamp Microsoft Access Reports 0 23rd Mar 2005 04:12 AM
Microsoft Graph Problem in Access 2003 Cory Microsoft Access Getting Started 1 26th Feb 2005 12:48 AM
Using Microsoft Graph on access Oded Kovach Microsoft Access Form Coding 1 29th Nov 2004 02:32 AM
Using Microsoft graph on access Arvin Meyer Microsoft Access 1 9th Sep 2003 05:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:35 PM.