I want to print a report in Access, where I can show the name on top the report when user enter name. please take a look.
I have this so far in the header of the report -
-
=Forms!RunReport!Pharmacist.Value
-
-
I want something like that
"Interventi ons by location by "Pharmacist Name" -
-
PARAMETERS [Enter Pharmacist Name] Text ( 255 ), [Start Date] DateTime, [End Date] DateTime;
-
SELECT Intervensions1.Location, Count(Intervensions1.fldID) AS CountOffldID
-
FROM Intervensions1
-
WHERE (((Intervensions1.Pharmacist) Like "*" & [Pharmacist] & "*") AND ((Intervensions1.Date) Between [Start Date] And [End Date]))
-
GROUP BY Intervensions1.Location;
-
-
5 1611
I want to print a report in Access, where I can show the name on top the report when user enter name. please take a look.
I have this so far in the header of the report -
-
=Forms!RunReport!Pharmacist.Value
-
-
I want something like that
"Interventi ons by location by "Pharmacist Name" -
-
PARAMETERS [Enter Pharmacist Name] Text ( 255 ), [Start Date] DateTime, [End Date] DateTime;
-
SELECT Intervensions1.Location, Count(Intervensions1.fldID) AS CountOffldID
-
FROM Intervensions1
-
WHERE (((Intervensions1.Pharmacist) Like "*" & [Pharmacist] & "*") AND ((Intervensions1.Date) Between [Start Date] And [End Date]))
-
GROUP BY Intervensions1.Location;
-
-
You could try creating a textbox in your Report Header with the following:
="Interventi ons by location by " & Forms!RunReport !Pharmacist.Val ue
I haven't tested this so let me know if it works. I know this method would work if you had the prompt for Pharmacist Name in your field list for your report. I'm not sure if the above query is for your report or for your form.
You could try creating a textbox in your Report Header with the following:
="Interventi ons by location by " & Forms!RunReport !Pharmacist.Val ue
I haven't tested this so let me know if it works. I know this method would work if you had the prompt for Pharmacist Name in your field list for your report. I'm not sure if the above query is for your report or for your form.
Thanks for your reply. i tried that, but it still giving me an error #Name?
NOT SURE WHATs wrong with it?
is the above query the record source for your report?
is the above query the record source for your report?
Well this is the query for my Interventions by location by pharmacist, so yes this is the record source for my report. -
-
PARAMETERS [Enter Pharmacist Name] Text ( 255 ), [Start Date] DateTime, [End Date] DateTime;
-
SELECT Intervensions1.Location, Count(Intervensions1.fldID) AS CountOffldID
-
FROM Intervensions1
-
WHERE (((Intervensions1.Pharmacist) Like "*" & [Enter Pharmacist Name] & "*") AND ((Intervensions1.Date) Between [Start Date] And [End Date]))
-
GROUP BY Intervensions1.Location;
-
-
Well this is the query for my Interventions by location by pharmacist, so yes this is the record source for my report. -
-
PARAMETERS [Enter Pharmacist Name] Text ( 255 ), [Start Date] DateTime, [End Date] DateTime;
-
SELECT Intervensions1.Location, Count(Intervensions1.fldID) AS CountOffldID
-
FROM Intervensions1
-
WHERE (((Intervensions1.Pharmacist) Like "*" & [Enter Pharmacist Name] & "*") AND ((Intervensions1.Date) Between [Start Date] And [End Date]))
-
GROUP BY Intervensions1.Location;
-
-
If it's your record source for your report then if you change the query just slightly so that your parameter will show up in your field list for your report, like so: - PARAMETERS [Enter Pharmacist Name] Text ( 255 ), [Start Date] DateTime, [End Date] DateTime;
-
SELECT Intervensions1.Location, Count(Intervensions1.fldID) AS CountOffldID, [Enter Pharmacist Name] AS NamePrompt
-
FROM Intervensions1
-
WHERE (((Intervensions1.Pharmacist) Like "*" & [Enter Pharmacist Name] & "*") AND ((Intervensions1.Date) Between [Start Date] And [End Date]))
-
GROUP BY Intervensions1.Location;
Then you should be able to put this expression in your textbox on your report:
="Interventi ons by location by " & [NamePrompt]
As I mentioned before, this method has worked for me in the past, but the way I've used it in the past, I've needed my prompt to be in my field list.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Roger |
last post by:
I couldn't find anything at
http://www.mvps.org/access/reports/index.html
I have a report with static (name, address, etc) in its report header
and a subreport in the report's detail section
the subreport has column headings in both its report and page headers
(until I figure out which is best)
when I print the report, the subreport headings show on the first
|
by: Anne M |
last post by:
I have a report based on query..which is a team list with names and their
role on team ie coach, assistant and player.
Report is almost what I want and my knowledge is limited so I need some
advice.
I want the team list to show the names of the individuals and their role on
team if they are coach or assistant but not if they are player but since
they are based on the same field (role) how do I set it so I can get it to
show only what...
|
by: Dean Slindee |
last post by:
Anybody written code in VB.NET to: 1) show a print preview window of reports
already written and stored in an Access 2002 database; or 2) execute the
print of a report stored in an Access 2002 database?
Thanks,
Dean Slindee
|
by: TomislaW |
last post by:
I am sending word document with e-mail from asp.net 2.0 application.
I read doc file like this:FileStream fs =
System.IO.File.Open(docPath,FileMode.Open,FileAccess.Read,FileShare.Read);
Then create message:
MailMessage message = new MailMessage("mail@company.com", email);
message.Subject = "Subject";
message.Body = "";
ContentType ct = new ContentType("application/vnd.ms-word");
Attachment data = new Attachment(ms,ct);
|
by: vsts2007 |
last post by:
Is it possible to put the report name in the header of the report.
i created pay slips in access and i want to put report name in the header of the report created.
| |
by: NicholasSerpentine |
last post by:
Hi folks....I have been checking out this group and have found help
and solutions to everything I have needed up to this point. I have
created a report based on a Query to show me certain activity during a
specific period. When I run the report a prompt asks me for the start
date and end date of the period. How can I have the report show those
same dates without retyping them?
Thanks,
|
by: Simon |
last post by:
Dear reader,
In case a report is a sub report the Report Header of the sub report is
printed in the report but the Page Header of the sub report will not be
printed. This is the same for Page Footer of the sub report.
Is there a possibility to force printing Page Header and Page Footer of a
sub report.
|
by: roverturf |
last post by:
Is there a way to show a subreport's header if the subreport has no data? On a work order report (rptWorkOrder), I have two subreports, one for parts charges (subreportParts) and another for labor charges (subreportLabor). Both subreports are set to can grow=yes and can shrink=no, and both are height=1". If the recordset for subreportParts is empty the subreport is not visible, leaving a 1" in my report.
I would like to put a label under...
|
by: DThreadgill |
last post by:
Don't know if this can be done or not but I'm sure the gurus here will let me know ;)
Got a .csv file that is being imported into a table using specs. The table consists of the following:
Issue (text)
Returned_Date (Date/Time)
RD (text)
RM (text)
Region (Text)
Type (text)
ClientName (text)
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |