473,503 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is it possible to graph in a form rather than a report?

3 New Member
Hi all, My boss wants a graph of a person’s scale for depression (0 to 5) over the months that she sees him / her. The datta is currently stored in a table (relevant collums: ptID, date and depression). There are multiple patient IDs and I want to pull out only the data with a certain ptID and plot only those values over time, so that my boss doesn't have to look at a graph of 200 ptIDs on one sheet to find a certain person.

The only way I can figure out how to graph is with a report which lists all the patients’ depression over time. Is there any way to make a line graph of data linked to a specific patient (by ptID) in more of a form setting rather than a report, so that I could click through several graphs all specific to a certain ptID?

Thank you for any help you could give me.
Other solutions are welcome as well.
I look forward to learning from you.
Jun 24 '10 #1
2 1383
rwalle
47 New Member
I would first create 2 tables 1 "TblPt" for patient data like
PtId
PtName
PtAddress
and the other for Appointments "TblAp"
that includes
ApId,
ApDate,
[Pt]LookUp field form TblPt.PtId ,
ApScore ( the depresion value assigned)

Create a Form(FrmSelectPt) with 1 CmbBox(CmbPtId) based on PtId Field from TblPt so you can chose desired PtId
also add to this form two unbound text boxes formated for date entry and named appropiately like "StrDate" and "EndDate" where you can select start and end dates ,( you should set the format of this 2 boxes to date style so you can easy enter dates, also you can set the dafault value to Now() for the EndDate and (Now()-30) for the StartDate so it will be preloaded, then add a button "BtnOpenChart" that will Open the FrmPtChart

Then create a "PtScoreQry" between 2 tables with all needed fields ApId,ApDate,Pt, ApScore,
Set the criteria for the field Pt to [Forms]![FrmSelectPt]![CmbPtId]
also set the ApDate Criteria to Between [Forms]![FrmSelectPt]![StartDate] and [Forms]![FrmSelectPt]![EndDate]

based on this query create another query "FilteredPtQry" that will have ApId,ApDate,ApScore
create a new form "frmPtChart" and inside it a line chart based on "FilteredPtQry"
In the "FrmSelectPt" form Once you pick a Patient Id and chose the Start and End Dates clik on "btnOpenChart" it will opens [FrmPtChart] form and since the chart query "FilteredPtQuery" is based on "PtScoreQry" and that is already filtered based on frmSelectPt data you will see only data for the selected Patient and in the selected date range

hope it is clear for you

BR

Raymundo Walle
Jul 8 '10 #2
abirch
3 New Member
Thank you !
Jul 12 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
4887
by: Yisroel Markov | last post by:
Greetings, two of my users have the same front end db (A2K). Each of them has created, in addition to the standard reports, a personal customized report. Now they both want to be able to run...
1
1548
by: Susan | last post by:
Word has the following method: range.InsertSymbol 254, "Wingdings" where 254 Wingdings is a checkbox with a check. Is there something similar in Access for placing a checkbox with a check on a...
3
1840
by: Simone | last post by:
Hi, I'm a DB newbie and I've been having issues trying to print the record I am viewing in a form to a report. I have looked in groups all over and they all say to try basically the same thing...
3
1415
by: duncedunce | last post by:
Hi Have 'googled' and no luck (after 2 hours!) - hope someone here can help. Access 2003 I am looking (for a visually impaired student of mine) at how to insert unbound controls in to a...
11
3098
by: ian.davies52 | last post by:
Is there anything I can do about the apparent limit on the number of textboxes that have calculations as their control source on a form or report in ms-access? I have a query that pulls together...
2
1665
by: mgolding | last post by:
I have an Access query that gets an ID value from an open form. Something like SELECT * from tablename WHERE ID=openFormName.ID; But now, I want to also run the query by handing it the ID from...
0
992
by: saddy | last post by:
hello i m using seagate crystal report and then i will use the same report in my vb.net application In the report i want to show the values of the table that was built in the SQL server 2000 ,...
4
13654
by: sara | last post by:
Hi - I've looked at many posts, and cannot find the answer on this specific problem. I have several fields on a table, which I've defined as "Text", 3 characters, Format Yes/No (I picked up the...
11
2664
by: Xaysana12345 | last post by:
Hi there, I am having problem with form and report calculation fields showing #Num. ex. fieldA/fieldB if either fieldA or B=null, in the result field obtains #Num. How can I figure out? ...
6
3717
by: sarahaman | last post by:
hi all i am new in oracle! i made one simple form with report and i made one print button with trigger.(when-button-pressed) when i press the print button so its giving me whole data,i do not...
0
7083
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...
0
7278
Oralloy
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,...
0
7328
jinu1996
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...
0
5578
agi2029
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,...
1
5011
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
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...
0
3153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1510
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 ...
1
734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.