Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: skorda
  • Order by date
  1. skorda

    selecting distinct values for one specific field

    Mike, I have seen Group By used in the field list before (at least in MS SQL), however not in this way specifically. I am trying to get a count for each row (that is, for each county). I was hoping to avoid having to do these counts in seperate selects, but that may be my only choice, seeing...
  2. skorda

    selecting distinct values for one specific field

    I have a rather complex query that is grouping counts. There is one specific field where I need to count distinct values only (but for specific criteria). I am using VFP 9 Beta and trying to use a sub-query in the field list like this (there are a lot more SUM's but I removed them for...
  3. skorda

    How to select multiple counts

    Duh! It's been forever since I've done these kinds of counts. Thanks guys! Sebastian Stella740pl (Programmer) Nov 22, 2004 Try this: SELECT County, State, ; SUM(IIF(!RSPFlag AND MailFlag,1,0)) as AddrCount, ; SUM(IIF(RSPFlag AND MailFlag,1,0)) as AddrResp ; FROM...
  4. skorda

    How to select multiple counts

    I need to write a select that counts fields for multiple conditions. I tried putting my conditions in the count function like this: SELECT County, State, COUNT(!RSPFlag AND MailFlag) as AddrCount, COUNT(RSPFlag AND MailFlag) as AddrResp FROM csrProspects GROUP BY County, State ORDER BY State...
  5. skorda

    How to keep the closable 'X' button enabled on the screen

    Rick, I tried using BINDEVENTS() to the _screen.Closable property and it works while the program is initializing (the 'X' button stays enabled, when before it did not). However, once I switch to another app and then back, the screen 'X' becomes disabled. It seems like maybe VFP overrides any...
  6. skorda

    How to keep the closable 'X' button enabled on the screen

    I have an exe running a form in the screen window. It has a timer event that is waiting for activity. I want the closable 'X' button to stay enabled, so I put code in the Timer event, _screen.Closable = .t. This works as long as the focus is on the screen, but when I switch to another app and...
  7. skorda

    Multiple Combobox's selected

    Actually not, you'll note that even for the company name, the combobox is bound to the 3rd field which is the company code. I prefer to always seek by an id, rather than a description.
  8. skorda

    Multiple Combobox's selected

    This seems to be the case. Although I am not sure what you mean by a 'link'. If you mean a relation, than I would say this is a problem, because I did not relate these cursors in any way. Why would VFP create a link between my two cursors when I did not set any relationship between them...
  9. skorda

    Multiple Combobox's selected

    The incremental search does work on the first column. But in this case, as I said above, the incremental search only works on the first column of the second combobox once you have entered both comboboxes. No matter which combobox you are in, it will only search on the values of the second...
  10. skorda

    Multiple Combobox's selected

    Ok, has nobody ever had this problem? Am I not providing enough information? Please, anyone let me know if they can reproduce this...I may report this to MS as a bug? Thanks in advance. Sebastian
  11. skorda

    Multiple Combobox's selected

    I have to comboboxes that are on a toolbar and are related. One shows the company id number and the other shows the company name. This allows the user to select a company using either method. The problem is, once you have selected a company using both combo boxes, they both remain selected...
  12. skorda

    Disable Windows F10

    Thanks to both of you... Yes Mike, I want to do this because there are certain forms in which the user cannot have access to the menu. Also, F10 is a key that the users really, really use (back from the DOS days) - I argued against it, but they are so used to using it that it would interfere...
  13. skorda

    Disable Windows F10

    Does anyone know how to disable the F10 key in Windows? It activates the menu when pressed (even when I hide it) and I can't assign anything else to it even in the keypress of a form. Thanks.

Part and Inventory Search

Back
Top