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 Mike Lewis 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: *

  1. briesen

    Group by Name

    I'm trying to group some data together in which I want to separate groups to be considered one. Below is a sample query, but basically I want LargeNail and SmallNail to be considered the group 'Nail'. The issue is that it just lists 'Nail' twice, with all the numbers separated. I want the two...
  2. briesen

    Merge Month and DateName

    I have a query that lists the aggregate Month and DateName by month in two separate fields. I would like to merge these together so this query displays like so: 2009 1-January 2009 2-February etc. SELECT 'Year'=Year(vtr."Billing Date"), 'Month'=Month(vtr."Billing Date")...
  3. briesen

    Nested Formula Issue

    I have a fairly simple nested formula, but I'm struggling to get the correct format. I know that the formula at the end is redundant, but I was just trying to figure out how to get it to work. Round (if isnull({tei.dteFileCreated}) then if {vtr.Mode}="LTL" then...
  4. briesen

    Left Outer Data On One Row

    I did a left outer join between two tables. The order number is split into different classes. When I return data, the order number lists multiple line items for each Class, like so: Order Class 1 25 1 26 1 27 2 32 2 33 I'd like to make it so it lists the one...
  5. briesen

    Numerical Parameter without field

    I'm just using Microsoft Query. I decided to scratch the inputbox idea, and simply declare and set a variable. I did it successfully, but when I go back to edit the SQL again, all the code has dissapeared. Do you know why this is? All I added is below and then I put @Param in the SELECT...
  6. briesen

    Numerical Parameter without field

    How do I actually create the parameter? Never done this before...
  7. briesen

    Numerical Parameter without field

    Is it possible to have an SQL parameter in which is just asks for a numerical value to input into a formula? It would be a non-existing field that would just import whichever value I wanted. Everything I've seen for SQL parameters is that you input a field and it asks you which value to use...
  8. briesen

    Chart Year over Year Comparison

    I have a Crystal Report which is essentially just charts. Currently, the Y-axis is a count while the X-axis is a billing date. The billing date is by month of the Fiscal Year. The categories are two different locations, which are displayed in the key. Instead of just having one fiscal year...
  9. briesen

    Refresh Open Works and Copy to New Workbooks

    I'd like to setup a macro so that Excel will refresh the query in each sheet in an open workbook and then copy everything to a new blank workbook. With that, I'd like it to be able to do this for all open workbooks. Here's the code I currently have, but all it does is copy the first workbook...
  10. briesen

    Multi Part Identifier Could Not Be Bound

    I got it, thanks! SELECT 'Year'=Year(vtr."Billing Date"), 'Month'=Month(vtr."Billing Date"), 'Miles'=SUM(vtr."TotalMiles"), 'Weight'=SUM(vtr.Weight), 'Total Cost'=SUM(vtr.TotalARAmt), 'Base Cost'=SUM(vtr."A/R Invoice Amount")...
  11. briesen

    Multi Part Identifier Could Not Be Bound

    Actually, George, yours works, I just missed a setting. The issue is still that I want the tbl to group by the month of the dteEffectiveDate so the counts/sums don't get skewed.
  12. briesen

    Multi Part Identifier Could Not Be Bound

    I very much appreciate this help. I had to add Group by Year(vtr."Billing Date"), Month(vtr."Billing Date") to get both of your suggestions to work. George, yours just gave me a blank screen, but no errors. chamilz, yours worked, but it isn't what I was looking for. There are four or five...
  13. briesen

    Multi Part Identifier Could Not Be Bound

    Thanks for all your help, but it says: Invalid column name 'dteEffectiveDate' Invalid column name 'nbrFuelSurcharge' SELECT 'Year'=Year(vtr."Billing Date"), 'Month'=Month(vtr."Billing Date"), 'Miles'=SUM(vtr."TotalMiles"), 'Weight'=SUM(vtr.Weight), 'Total Cost'=SUM(vtr.TotalARAmt)...
  14. briesen

    Multi Part Identifier Could Not Be Bound

    It sort of does. I changed the formatting inside the second select statement, but still have the issue. Can you clarify what else I'm doing wrong? Can I not use the first 'FSC' alias in the first select statement? SELECT 'Year'=Year(vtr."Billing Date"), 'Month'=Month(vtr."Billing Date")...
  15. briesen

    Multi Part Identifier Could Not Be Bound

    Could you please help me correct my formatting? I cannot figure out what I'm doing wrong. Thanks! The multi-part identifier "tbl.dteEffectiveDate" could not be bound. The multi-part identifier "tbl.nbrFuelSurcharge" could not be bound. Invalid Column name 'dteEffectiveDate'. Invalid column...
  16. briesen

    Null Dates in Group

    Thanks. I guess my next question is that the main data I actually use is in mm/dd/yyyy hh:mm:ss AM/PM. Would my date table need to have every date listed in the year in the same format? In the end, I'm going to group it by month. This is where I get a little confused with linking.
  17. briesen

    Null Dates in Group

    I'd like to follow this up again because I was wondering if there is another method to doing this. I have a report grouped by billing date by month. With this report, I want it display all the information for each month, and then if it's null, I want it to field out my sums and counts as zeros...
  18. briesen

    Drawing Line Above Chart

    I'm trying to draw a line above a Crystal Report generated chart, but the line keeps going behind the chart. I've tried moving the chart to the back of the section, but the line still gets blocked out. Is there anyway to fix this? It's just a set number that I was trying to manually display...
  19. briesen

    Null Dates in Group

    This may be an unusual request, but I'm not sure. I have a report where everything has a value: Customer Order Number Date Value When I group this report by month and there is a month with no values, I want the report to automatically field out the fields as zeros. For this example, the...
  20. briesen

    Custom Grouping multiple values

    I'm doing an SQL query where my first field has six different values. Theoretically, they are Blue, Green, Red, Yellow, Orange, Purple Is it possible to force them to group two or more colors together? For example, I want Blue and Green to group together, Red and Yellow to Group together...

Part and Inventory Search

Back
Top