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 SkipVought 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. globalbear

    Excel, filling a blank Column

    Hi, I put an extra loop in your code. Think it should do the trick. Public Sub FillBlanks() Dim lngLastKnownVal As Long Dim pntr As Long Dim lngLastRow As Long ' ALL Data in column A must be numbers lngLastRow = Cells.Find("*", Cells(Cells.Rows.Count...
  2. globalbear

    ColorIndex or RGB value

    I understand you want to see which interior color number that is defined for a specific cell. Here's one way: Sub a() iRow = 1 iCol = 1 oRow = 1 oCol = 2 Cells(iRow, iCol).Select c = Selection.Interior.Color Cells(oRow, oCol) = c End Sub This code will output the interior color of cell...
  3. globalbear

    Report Studio - Prompt Page

    Confuse-a-cat-limited... Which blue arrow are we talking about here? There is one arrow pointing to the left just right of the house-icon. That arrow would take you back to where you where before. The arrow I mean is on the next row, pointing to the right. The tooltip for this icon is "Run"...
  4. globalbear

    Report Studio - Prompt Page

    You don't need to close the report and invoke it again to resubmit new prompt values. Just run the report again by pressing the blue arrow. That should force you to choose a new prompt value.
  5. globalbear

    Prompts with wild card

    I don't think I follow you now Swathi. If you use 'starts with' you don't need to concatenate with '%'. In SQL you would use something like 'select Custname from myTable where myTable.Custname like 'whatever%' In Cognos you would filter on something like '[CustName] starts with ?MyParameter'...
  6. globalbear

    Prompts with wild card

    How about adding one more prompt where you enter a value, e.g. "WAN". Then filter the second prompt with [CustName] starts with ?Parameter1?
  7. globalbear

    Event Studio Cognos 8

    Could anyone explain the difference between setting up an event for a report in event studio and setting up a report schedule? I use Cognos 8. Is Event Studio schedueled to run at a pre-defined time or is it actually listening to the database in real-time like an SQL-trigger? Confused...
  8. globalbear

    How do I change data source in Cognos 8 Framwork Manager

    Thanks for your reply, but that will not do the trick for me. I don't want to add a new data source. I want to change data source from test to prod for the entire project. All tables etc. are identical for the two data sources. However, I found a way of doing this yesterday: *Find the Project...
  9. globalbear

    Connect Multiple Data Sources

    Sounds like you should use a Union to connect the two queries. A union work like this: Query A: Row1 Data1 Row2 Data2 Row3 Data3 Query B: Row4 Data4 Row5 Data5 Union: Row1 Data1 Row2 Data2 Row3 Data3 Row4 Data4 Row5 Data5 The union works like a query of its own. You should be able...
  10. globalbear

    How do I change data source in Cognos 8 Framwork Manager

    I have developed a project in Framework mngr that connects to a data source called "Test". I have built a package on this project and constructed som reports on that package. Now, I have finished my project and my reports and want to change the data sorce from "Test" to "Prod". I would like...
  11. globalbear

    Using parameters in MSRS with Oracle database

    This query will give me all transactions for a specific journal in the general ledger: SELECT COMPANY, FISCAL_YEAR, ACCT_PERIOD,CONTROL_GROUP,LINE_NBR, ACCT_UNIT, ACCOUNT, BASE_AMOUNT, R_SYSTEM FROM LAWSON.GLTRANS WHERE (COMPANY = 10) AND (CONTROL_GROUP = 2) AND (R_SYSTEM = 'GL') AND...
  12. globalbear

    Using parameters in MSRS with Oracle database

    I am using Reporting Services to connect to an Oracle database. How do I manage to use parameters with Oracle? Example: I want to select all transactions from a certain period. I set up a parameter called Period. If I would have an SQLServer DB it would be fine to filter the Period-field with...
  13. globalbear

    Datediff

    I am trying to compare two date fields in Reporting Services. I suppose I should use the datediff-function but I am not sure of the syntax. I noticed that the following line will give me the day six months from now. =DateAdd(DateInterval.Month, 6, now()) But how do I compare date1 with date2?
  14. globalbear

    Sort of a transpose.

    Yes of course you could. Try changing the line For col_copy_from = 1 To 4 to the number of cols you prefer. A better way of course would be to change 4 to a variable such as For col_copy_from = 1 To last_col But then you have to figure out how to give last_col the correct value - that one I...
  15. globalbear

    Sort of a transpose.

    Ooops, sorry... I realize that I put the line row_copy_from = 2 on the wrong place... It should be inside the for/next-loop Try this instead! Sub new_table() row_copy_to = 1 'row to copy to, start on row no one col_copy_to = 10 'column to copy to, for example...
  16. globalbear

    Sort of a transpose.

    Well January seems to work but then February etc do not. Paste your table in a fresh new spreadsheet. My code assumes that all cells that don't have any numbers really are empty (meaning no spaces or such). That's what the line Do While Cells(row_copy_from, col_copy_from) <> "" does. If the...
  17. globalbear

    Sort of a transpose.

    place your table in cell A1 then run this code I think it should do the trick Sub new_table() row_copy_to = 1 'row to copy to, start on row no one col_copy_to = 10 'column to copy to, for example col ten header_row = 1 'header row row_copy_from...
  18. globalbear

    Displaying field color in MS Reporting Services

    It's not the color I'm really after... That's just an example. I'm looking for the properties of the textbox of which color is one, font another, text alignment a third etc etc. I want to display the value of one of the textbox properties in one way or the other - got any ideas?
  19. globalbear

    Displaying field color in MS Reporting Services

    I am trying to make a MS RS report in Visual Studio. I have a table with different fields. I can refer to these fields with this syntax: =ReportItems!Textbox1.value This will give me the same value as I have in Textbox1. Now to my problems: how do I get something else out of Texbox1 rather...

Part and Inventory Search

Back
Top