Report Application Pascal

Reply

Join Date: Nov 2008
Posts: 1
Reputation: cincachoo is an unknown quantity at this point 
Solved Threads: 0
cincachoo cincachoo is offline Offline
Newbie Poster

Report Application Pascal

 
0
  #1
Nov 20th, 2008
Hi there forum members:

Looking for some help .. I am a physician, not a programmer but .....

I have created in immunizations database in MySQL
I would like to create a form for filling out immunizations on a chart in my office for families

To make it simple, lets say DB is like this:

IMM_NAME | IMM_MANUF | IMM_DOSES

dpat aventis 5
ipv aventis 5
mmr merke 2
varicella merke 2

I would like "report writer" from MyCON (a proprietary MySQL client with RAP built in) engine to ...

Cycle on the first record IMM_DOSES times, then go on to second record; repeat the row
untils IMM_DOSES rows have printed; go on to third row, etc.

My questions:

a) where does the code go?

in the BeforeGenerate event of the Detail (report body) section?
in the BeforePrint event of the Detail (report body) section?

b) seems like a "for loop" is the simple way but I am not sure of this

Pascal and Delphi Syntax (Toggle Plain Text)
  1. for x in 1 to IMM_DOSES do
  2.  
  3. {some code here that tells engine to cycle a row?}
  4.  
  5. {some code here that decriments the value of x ?}
  6.  
  7. done

My (simplified) end result hoped for is a form like:

--------------------------------------------------------------------------
CMG VACCINE RECORD on _____________
--------------------------------------------------------------------------
NAME DATEGIVEN SOURCE SITE MANUF
DTAP 1st __________ _______ ____ aventis
DTAP 2nd __________ _______ ____ ____
DTAP 3rd __________ _______ ____ ____
DTAP 4th __________ _______ _____ ____
DTAP 5th __________ _______ _____ ____
IPV 1st __________ _______ _____ merke
IPV 2nd __________ _______ _____ ____

Any thoughts?
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Report Application Pascal

 
0
  #2
Nov 22nd, 2008
If you do the correct grouping on your data you dont need a before and after.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Pascal and Delphi Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC