Is there some kind of text output area in forms ??

OK - I am not talking about a text item field.
I have a form containing project and allocated staff information via a project_staff table. I need to include a section on the form that summarises how many staff of a particular type are involved in that project.
I want it to look like this:
3 x programmer
2 x Manager
1 x Datacomms expert
1 x analyst
etc etc.
Forum members kindly showed me the SQL I need to get this output but I am having trouble outputting the results in Forms (in SQL+ its fine).
I want an overall summary not individual text item fields which prevent the COUNT function from working how I need it to. Is there such an item in Forms, an area that I can output results of an SQL query to ??
Thanks
Kevin.

A multi record form block ?? Is that a "tabular" type form ?? I tried that but I couldn't get it to work.
Here is the SQL :
SELECT a.staff_type, b.proj_number,COUNT(a.staff_id)
FROM staff a, project_staff b
WHERE a.staff_id = b.staff_id
GROUP BY a.staff_type, b.proj_number.
This works perfectly in SQL+. I amended it because I did not want the project number being displayed:
SELECT a.staff_type, COUNT(a.staff_id)
FROM staff a, project_staff b
WHERE a.staff_id = b.staff_id
GROUP BY a.staff_type
This is perfect in SQL+. I have 2 "5 row tabular" text items, one called "qty" the other called "description". The form is a Master Detail where the Master provides the Project number, the Detail I need to display the results of this SQL code.
I tried amending the code using references to block and text item fields but at best I was able to get it to work but the count for each row returned was always 1 (returned to the "qty" text item).
I know the code the code below is wrong for the Post Query trigger:
begin
select COUNT(staff_id)
into :proj_staff.qty
from proj_staff
where staff.id = *** I forgot what I put in here now !!****
and proj_number = :project.proj_num
end;
I had a 2nd piece of code in the Post Query trigger to populate the "description" text item which worked:
begin
select staff_type
into :proj_staff.description
from staff
where staff.id = :proj_staff.staff_id
end;
Any idea how I can make the COUNT function work ???
Cheers.
PS - I take it I can't use the natural join code cos it kept coming up with errors when I tried to compile it ?!!!
Message was edited by:
MrVen

Similar Messages

  • Hi! I'm getting an iPhone 4 soon, so my question is; is there some kind of "app" that can upgrade iPhone 4 to 4s?

    I'm getting an iPhone 4 soon, so my question is; is there some kind of "app" that can upgrade iPhone 4 to 4s?

    No, there isn't.
    The phones are different as in with different hardware.
    If you want a 4s then I would suggest in getting the 4s.

  • Edit Actions and Advanced Actions in some kind of text editor

    Is there any way to edit Actions and Advanced Actions in some kind of text editor?
    The built-in GUI is fine for little tweaks, but trying to use it for anything real is a almost impossible.
    Can Creative Suite open a Captivate project and give access to the Actionscript in the project?
    Is there a text file someplace that can be extracted, editted, and put back in?

    Hello,
    has the feature to edit  Actions and Advanced Actions using a text editor been implemented into the new Captivate 7?
    I'm facing the problem that I have very extensive Advanced Actions in Captivate in which I want to change a variable x into a variable y. Doing it manually would take  about a day or so.
    It would be great if there was some kind of workaround.
    Regards

  • Hi, Ive been trying to hook up my M-Audio interface to my Mac Book Pro 15 laptop and it doesnt have the same size firewire port is there some kind of adapter i can buy?

    Hi, Ive been trying to hook up my M-Audio interface to my Mac Book Pro 15 laptop and it doesnt have the same size firewire port is there some kind of adapter i can buy?

    Just Google for a Firewire 400 to Firewire 800 cable, you are sure that this is what you have I hope?

  • Hi, is there some kind of package we can buy that would include only photoshop, illustrator and indesign?

    hi, is there some kind of package we can buy that would include only photoshop, illustrator and indesign?

    The Cloud Complete membership would be the cheapest option.

  • I am using final cut express. It seems that any clip over a certain length, say 5 min, does not fully transfer! All shorter clips are perfectly fine. Is there some reason why longer clips are not fully transferred? (a half blue circle shows up on the tran

    I am using final cut express 4. It seems that any clip over a certain length, say 5 min, does not fully transfer! All shorter clips are perfectly fine. Is there some reason why longer clips are not fully transferred? (a half blue circle shows up on the transfer list, indicating that the clip was not fully transferred. When I check in the capture scratch folder, sure enough the whole clip is not there!
    Is there some glitch in final cut express that only allows short clips to be transferred in full?

    Thanks for the reply. I'll try to answer all the questions (I am a relative novice). Your help is appreciated.
    By the way, the other reply I received suggested the following:
    In Final Cut Express>System Settings>Scratch Discs make sure the Limit Capture/Export File Segement Size To: is not checked.
    I did this and it was already unchecked. So this is not the answer...
    The strange thing is, I have been logging and transferring with FCE for 2 yrs without any problems at all with shorter clips, but have come up against the problem with long clips (over 5 or so min)  the whole time. I got around it by simply making sure I stopped recording after less than 5 min while shooting footage. OR if I accidentally got a long clip, I import into imovie and then import into FCE. Not very streamline and I worry about compressions altering quality!
    I am now trying to import a 20 min and a 17 min clip and it only transfers around 3 minutes of each, I have re-tried several times and it happens repeatedly. The blue circle in the transfer list shows up as a half blue circle instead of full. Clip cuts off after 3 or so minutes.
    ANSWERS
    how you are ingesting the files
    From external flash drive connected directly to mac using FCE.
    the format of the source footage
    digital via ext flash memory. Frame size :1929X1080 / 25fps
    what camera shot the footage
    SONY HXR NX5
    how you are connecting to the computer
    from flash memory directly via usb
    what version of FCE you are using
    4
    what OS your computer is running
    10.6.8
    what model Mac
    macbook Pro intel Core i7
    what drive you are using for Capture Scratch
    3TB external drive (plenty of room left)

  • Is there some kind of recall to fix project problems ?

    I know a group of people that have a macbooks like me, and we all had the same problem. Our macbook always broken near to keybord. So I have to ask, is there some kind of recall to fix it ? Because it appear be one kind of project mistake.
    If it exists, What should I do???
    *sorry about my english

    Hi and Welcome to Apple Discussions ...
    What you need to do is contact Apple. http://www.apple.com/support/contact/phone_contacts.html
    And go here. MacBook Service - Frequently Asked Questions
    Your English is just fine.
    Carolyn

  • I shattered the screen of my iphone 4 and switched to the iphone 3 and some of my text messages are still being sent to my iphone 4 even thought i switched them. What do i do?

    i shattered the screen of my iphone 4 and i switched my line back over to the iphone 3 and some of my text messages are still being sent to my old phone. What do i do?

    Are the messages being sent text messages or iMessages?

  • Is there some kind of script similar to TWM's iconify for any WM or DE

    I know that's a rather specific question, but I really want to find something similar.
    Today I was playing around with TWM and modifying it to work as I wanted it, but on the end I decided, that I still prefer KDE over it.
    But one option that really stuck with me was iconify.
    I guess in more modern WM's it was replaced by minimize, but I kind of like the idea of having "icons" of minimized windows floating around my desktop.
    So anyway, is anyone aware of some kind of script that would have a similar option?
    And if there isn't any how hard would it to make it "myself" (NB.: I'm not really a programmer, so if anyone else thinks this is a good idea, we could work together or something).
    Thanks in advance.

    Many panels can do this.  Specifically, I think tint2 would be the easiest to configure for something like the Win3.1 style of iconifying.  Just set the tint2rc to only show iconified items, have all transparent backgrounds, and to show only icons and no text.
    EDIT: I guess this depends on whether you'd want to be able to drag the icons around.  Tint2 would not allow this.  They'd just show when the window was iconified, and could be clicked on to show the window again.  As another option, Rox desktop manager does something like this if I'm remembering right (it's been a while).
    Last edited by Trilby (2013-11-03 21:38:01)

  • Some of my text messages are in blue and some are in green. why is that?

    Some of my outgoing messages are blue and some of them are green. why is that?

    Imessage causes this.
    You can learn about it in the manual:
    iPhone User Guide (For iOS 5.0 Software)

  • Optical drive problem? Is there some kind of Diagnostic?

    When I insert a CD or DVD my MB spits it out, tried to insert slowly, fast, vertical , horizontal etc....
    Is there any kind of diagnostic for the optical drive I could run and find out?
    thanks

    One easy way to tell if this is a hardware or software issue would be to use the startup manager, which does not use the software on the hard drive nor the system on the install disk. Do the following:
    1) Restart the computer, using the Apple menu.
    2) Immediately after hearing the startup chime, hold down the "Option" key on your keyboard.
    3) After the computer starts up you should see an icon for your hard drive. At that point, insert the install DVD.
    4) If the same issue occurs (it spits out the DVD) there is a problem with the computer's optical disk drive. You will need to have it repaired. Contact Apple at 1-800-275-2273 for repair.
    PM G5, PB G4 17", iMac G5 20"   Mac OS X (10.4.9)  

  • Are deleted photos really deleted or is there some kind of back up file.

    i deleted a photo i did not want to delete is there anyway to get it back

    If you deleted it from the iPhone, it depends on if you had it copied to your computer. If you didn't, it's gone for good. If it's copied on your computer, all you need to do is sync it back over.

  • Is there some kind of tiles in 3d games?

    I mean, if you are making a 3d game in director and the
    character shoots a bullet, do you have to calculate every frame in
    what litlle square is the bulet to know if a bullet is touching a
    enemy
    or
    just hitTest the bullet against all enemies every frame?
    In the flash wold they want to use tiles for everything, i
    get the feeling they are overcomplicating what could be done in a
    very easy way...cos i dont really like tiles at all.It would be
    cool to know that in 3d games there is no such thing.
    Thanks

    A multi record form block ?? Is that a "tabular" type form ?? I tried that but I couldn't get it to work.
    Here is the SQL :
    SELECT a.staff_type, b.proj_number,COUNT(a.staff_id)
    FROM staff a, project_staff b
    WHERE a.staff_id = b.staff_id
    GROUP BY a.staff_type, b.proj_number.
    This works perfectly in SQL+. I amended it because I did not want the project number being displayed:
    SELECT a.staff_type, COUNT(a.staff_id)
    FROM staff a, project_staff b
    WHERE a.staff_id = b.staff_id
    GROUP BY a.staff_type
    This is perfect in SQL+. I have 2 "5 row tabular" text items, one called "qty" the other called "description". The form is a Master Detail where the Master provides the Project number, the Detail I need to display the results of this SQL code.
    I tried amending the code using references to block and text item fields but at best I was able to get it to work but the count for each row returned was always 1 (returned to the "qty" text item).
    I know the code the code below is wrong for the Post Query trigger:
    begin
    select COUNT(staff_id)
    into :proj_staff.qty
    from proj_staff
    where staff.id = *** I forgot what I put in here now !!****
    and proj_number = :project.proj_num
    end;
    I had a 2nd piece of code in the Post Query trigger to populate the "description" text item which worked:
    begin
    select staff_type
    into :proj_staff.description
    from staff
    where staff.id = :proj_staff.staff_id
    end;
    Any idea how I can make the COUNT function work ???
    Cheers.
    PS - I take it I can't use the natural join code cos it kept coming up with errors when I tried to compile it ?!!!
    Message was edited by:
    MrVen

  • Is there some kind of problem with Apples servers?

    My Apple TV suddenly said theres an update available so i went ahead and it gave me this-
    Although it went quick but when it applied the update it failed and now im stuck on the Apple logo

    I had no problem on my system. Are you on wifi? Maybe there was some interference at play. In any case, since it failed you will have to grab a micro usb cable and restore through iTunes
    http://support.apple.com/kb/HT4367

  • I built a website for a customer using HTML only, so it would work on everything, but some of the text numbers are not clear on the ipad. It works perfectly on all the other browsers.

    I built a website for a customer using HTML only, so it would work on any browser, and it works perfectly on everything except ipad safari. I'm loosing information with most of my text numbers - instead of being black they are displaying a 'ghost' image (white) of the numbers.
    Is this a memory issue, or cache issue, or something else?  I've downloaded iCab and the site works perfectly with it.
    Also wondering if I can manually reload/refresh web pages in iPad Safari.
    Since most people with iPads will use Safari rather than iCab, I have to tweak this site to work in Safari.

    Detecting phone numbers and making them clickable is a feature of the browser, and rebuilding your web-site links will not make any difference. Its done when the page is shown in the browser, not when the page is created.
    According to the Safari iOS developers guide, you can turn these data detectors off using this code:
    <meta name = "format-detection" content = "telephone=no">
    http://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Referen ce/Articles/PhoneLinks.html

Maybe you are looking for