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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by sevex

  1. sevex

    Looping through query fields

    I have a query with quite a few fields, and I want to loop through them to do additional queries to get specific values from each. Is there any way to loop through query fields like looping through form fields in a collection? Any help would be greatly appreciated! (anyone else notice that...
  2. sevex

    DHTML Drop-down problems

    thanks anyway... I'll just keep hacking away at it.
  3. sevex

    DHTML Drop-down problems

    I'm testing in NS 4.08. Maybe no one even uses that one anymore... The *** drop down text *** appears when I mouseover the image, but when I move down to the text, where links will be eventually, it dissapears, cause the mouse events in the span tag seem to be ignored.
  4. sevex

    DHTML Drop-down problems

    I'm making a dhtml drop down menu, and while it works flawlessly in IE, it's giving me trouble in Netscape (go figure). The problem is if I move off of the image that makes the drop down appear, and onto the drop-down itself, it dissapears. I have onmouseover and onmouse events on both the...
  5. sevex

    Dynamic Visibility

    I just noticed that and was coming here to mention it before everyone saw how much of a moron I am... guess I was too late eh? :P
  6. sevex

    Dynamic Visibility

    Alright... I'm completely lost... I don't know what I'm doing. I have a select list, and depending on which option is selected, a different second select list will be &quot;displayed&quot; on the site. Here's what I have so far, and it doesn't do anything. in header: <script...
  7. sevex

    sorting by calculated field

    blah, why didn't I try that.... thanks for the help!
  8. sevex

    sorting by calculated field

    I'm trying to sort a query by a calculated field, but it's giving me a &quot;field doesn't exist&quot; error. Is there a special way of doing this? My example (Coldfusion): SELECT *, (#Now()# - target_completion) AS days_left FROM TJob ORDER BY days_left target_completion is a date field. I...
  9. sevex

    FirstDayofMonth giving incorrect value

    heh... well, what's really weird, is I took the code from an example in the manual, and tested it. It also gave an incorrect value... Maybe this function is bugged?
  10. sevex

    FirstDayofMonth giving incorrect value

    yup, it's correct
  11. sevex

    FirstDayofMonth giving incorrect value

    I'm using the FirstDayOfMonth function to help create a calendar, but it doesn't seem to return the correct day. If I use: #DayOfWeek(FirstDayOfMonth(Now()))# to get the day of the week for the current month (may), and it returns 2 (monday) when it should be 4 (wednesday). I must be doing...
  12. sevex

    Using ArraySum on a Query Column

    Thanks CFHUb, that worked great. Thanks WWebSpider as well, although I couldn't use that method, because I needed individual counts for each distinct, as well as a total.
  13. sevex

    Using ArraySum on a Query Column

    I'm trying to use arraysum with a query column to get the sum of all the values, but it just sees the first value, instead of an array. Is there some special way to do this? My code: <cfquery name=&quot;get_results1&quot; datasource=&quot;xxx&quot;> SELECT DISTINCT(q1), COUNT(q1) AS q_count...
  14. sevex

    select distinct and how many

    oh i just thought of it. distinct(field) as mydistinctfield, count(field) as fieldcount from mytable group by mydistinctfield? I can't test it out yet cause I'm waiting for datasources...
  15. sevex

    select distinct and how many

    Is it possible to do a SELECT DISTINCT, to select all distinct records, but also select how many of each distinct record there are? table data like: 1, cat 2, dog 3, cat 4, dog 5, dog and get a recordset with: cat, 2 dog, 3 thanks in advance for any help.

Part and Inventory Search

Back
Top