Parameter value

S

Savanah

I have a dialog box with options and a list box that I can choose the name of
the protocol, than I am running a line chart in a form, with a query on the
row source
SELECT [qry Projected Enrollment].[Max Of Week], Sum([qry Projected
Enrollment].[Sign Cons]) AS [Signed Consent], Sum([qry Projected
Enrollment].[In Screen]) AS [In Screening], Sum([qry Projected
Enrollment].Rand) AS Randomized, [qry Projected Enrollment].Projected FROM
[qry Projected Enrollment] GROUP BY [qry Projected Enrollment].[Max Of Week],
[qry Projected Enrollment].Projected, [qry Projected Enrollment].[Protocol
Name] HAVING ((([qry Projected Enrollment].[Protocol
Name])=[Me].[SelectCategory].[Value]));
the problem is when come the graph it pops up a Me.SelectCategory.Value,
then when I entered the protocol name runs fine. How can I avoid the pop up,
even I choose already the name on the list box, how can I set the list box
choice be linked to the query.
Tia
 
K

KARL DEWEY

Try changing ---- HAVING ((([qry Projected Enrollment].[Protocol
Name])=[Me].[SelectCategory].[Value]));
to ---
HAVING ((([qry Projected Enrollment].[Protocol
Name])=[Forms].[YourForm].[YourListBox]));
 
S

Savanah

Thanks for yor response, but unfortunatelly did not work, it popped up
another parameter "qry Projected Enrollment.Protocol Name" and them when I
entered the protocol name it does not show the line chart. Tia

KARL DEWEY said:
Try changing ---- HAVING ((([qry Projected Enrollment].[Protocol
Name])=[Me].[SelectCategory].[Value]));
to ---
HAVING ((([qry Projected Enrollment].[Protocol
Name])=[Forms].[YourForm].[YourListBox]));


Savanah said:
I have a dialog box with options and a list box that I can choose the name of
the protocol, than I am running a line chart in a form, with a query on the
row source
SELECT [qry Projected Enrollment].[Max Of Week], Sum([qry Projected
Enrollment].[Sign Cons]) AS [Signed Consent], Sum([qry Projected
Enrollment].[In Screen]) AS [In Screening], Sum([qry Projected
Enrollment].Rand) AS Randomized, [qry Projected Enrollment].Projected FROM
[qry Projected Enrollment] GROUP BY [qry Projected Enrollment].[Max Of Week],
[qry Projected Enrollment].Projected, [qry Projected Enrollment].[Protocol
Name] HAVING ((([qry Projected Enrollment].[Protocol
Name])=[Me].[SelectCategory].[Value]));
the problem is when come the graph it pops up a Me.SelectCategory.Value,
then when I entered the protocol name runs fine. How can I avoid the pop up,
even I choose already the name on the list box, how can I set the list box
choice be linked to the query.
Tia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

CUMULATIVE 1
CHART x Query 0
Report 3
Max value 2
Identifying existing record? 0
Cumulative Sum using more than one criteria 0
Running a query from a selection 16
Lookup value and control depends on lookup result 1

Top