shadow9449 said:
Thanks for your help. This underscores the need for a simple way to draw lines without using ActiveX controls and the windows API!
I'm always willing to learn something new, but my beef is that Access should have some way to make all this easy for the user without having to study a whole lotta Windows details.
I'm sure they could come up with something but it is not simple considering the original concept, you know how people moan when things change.
I inserted the MS Forms Frame ActiveX control. What is it?
Pretty much the frame control in Visual Basic
Device Context
Do you mean should the user resize the Access form that contains the frame?
Yes
Did you do join up the dots when you were a kid? You have an array of vector points in a set order and they are joined together with lines. If you do it this way you don't have to draw lots of lines to plot the graph it can be done in one operation.
I put some numbers in and put a LineX call in the GotFocus event of the Frame (wasn't much choice of events). I saw a brief flash of a line, and then it disappeared.
Best not use an event on the frame it is only really there to provide a bounding box. For now if you want to see how it will display use a command button on the form or something.
Specific to one record. The user will take certain measurements for a patient, and plot the results once a year or so.
So you want to show this chart for both data entry and data view and each record will have a different plot? Few, I was hoping this was the case.
If you want in data entry you could have the user actually plot the points on the chart rather than entering them through text fields. Then you can put on you CV that you made a simple CAD program.

Obviously it depends on the accuracy you want to achieve.
Probably the user will just input it once.
Seeing that this is medical data I imagine you will not want some users to amend existing records to prevent the falsification of records and criminal negligence?
As you can see, there is a huge learning curve associated with a feature that is simple to accomplish in Access Reports, and in VB. I know nothing about Windows programming (as you can tell), hence all the dumb questions.
I know only what I need to know.

It just so happens you have something that interests me. These questions are not dumb. I bet 99% of the people on here don't have a clue what we are talking about because this is beyond access programming really.
Sounds interesting what you are trying to do. If you attach a sample DB with one form and five or so records I will give it a go. Also a description of the chart (i.e. pie, line, spidergraph) Can you save Ak97 because my other machine is not up an running?
Later I might write some sample code in the code repository as to how you can draw basic shapes and set colour, type, and fill at runtime. Check out my other stuff there.
