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 strongm 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. fionama

    Scheduling Print of DeskIntelligence Report via InfoView

    Hi all, I am trying to schedule a Desktop Intelligence report in InfoView through scheduler XI 2.0, which, once it’s refreshed will print the output to a printer. I have set up a printer to be the default printer to the server, but when I select the default printer or even when I put in the...
  2. fionama

    Using IsNull and Convert on DateTime field

    I'm going with the last suggestion until we get get the datafield cleaned. Thanks very much for your help. Fiona
  3. fionama

    Using IsNull and Convert on DateTime field

    ...in a where clause. I firstly want to convert this to a DateTime datatype and then use the IsNull function on it. The syntax I'm using is: - SELECT * FROM EpisodeE WHERE Convert(DateTime,(IsNull(EpisodeE.DischargeDate,'')),101) Between '2009-01-01 00:00:00' AND '2009-01-31 23:59:59' but it...
  4. fionama

    Union Query Error

    Hi, Yes, the queries do work separately, but together I get the error mentioned above. Thanks for your reply - I really don't know where to go with this! Fiona
  5. fionama

    Union Query Error

    Hi all, I'm trying to run the following union query, and I'm getting the error "Error: Dynamic SQL Error. SQL error code = -104. Invalid command. Data type unknown. (State:HY000, Native Code: FFFFFF98)". The queries work individually, but can't see what the problem is with the union. Would...
  6. fionama

    Error in a sub-query

    Frederico, Thanks so much. I totally overlooked the fact that there was no relation between the outer SQL and the exists one. When I relate them, it works perfectly. Thank you also for re-working the syntax. Thanks for all other help also. Fiona
  7. fionama

    Error in a sub-query

    Have removed the DISTINCT - doesn't make any difference
  8. fionama

    Error in a sub-query

    When I run the sub-query, I get 24 records. Thanks for the tip re extracting too much from the sub-query. And thank you for your tip re joins. Unfortunately, I am relatively new at this, so the old-style joins are easier for me to follow. And I have double checked them, and that's not the...
  9. fionama

    Error in a sub-query

    Hi all, I have a group of tables containing containing relating to a maternity episode. Each episode (INCIDENT table) has a number of questions and answers associated with it (MAT_QUESTIONS and MAT_ANSWERS), which are identified using ID fields for each. I want to extract all those patients...
  10. fionama

    Table Alias Won't Work

    Hi, I have a group of tables that include fact tables, question and answer tables around the delivery of babies. Both the question and the answer lookup tables are relating back to the INCIDENT table via the INCIDENTID field, creating a loop. As I need to gather information on the questions and...
  11. fionama

    Business Objects Rpts using COM Connectivity

    Hi all, I'm not sure I'm in the right forum to ask this question, so apologies in advance. We have been given access to the data behind one of our systems using COM connectivity. I have been able to access the data through Crystal (Create New Connection > COM Connectivity), but can't see a...
  12. fionama

    Business Objects Rpts using COM Connectivity

    Hi all, I'm not sure I'm in the right forum to ask this question, so apologies in advance. We have been given access to the data behind one of our systems using COM connectivity. I have been able to access the data through Crystal (Create New Connection > COM Connectivity), but can't see a...
  13. fionama

    SQL Server: Truncating date (type varchar) to remove time

    Hi, I'm a beginner, so thanks in advance for helping me! I'm using SQL server database and Busobj XI R2. I have a number of date fields of type varchar, that output values in the YYYY-MM-DD HH:MM format. I want to create a report where the user prompts for a start date and an end date, and...
  14. fionama

    If Yes/No Button Ticked, Hide Text Boxes

    Had the "and" in the code...stupid me. Thanks again for your help!
  15. fionama

    If Yes/No Button Ticked, Hide Text Boxes

    Hi, I'm trying to set a tick box on a form so that, if ticked, one text box (SourceOfRequest) will be visible and a number of others invisible, and if not ticked, vice versa. The code works fine if I'm referring to just one text box (as below) :- Private Sub StatisticalRequest_AfterUpdate() If...
  16. fionama

    Saving Reports as Word Documents

    Hi, I'm quite a novice, so excuse what is probably a silly question! I have set up an access database, and in the "Startup" options, I have unticked all the menu options (allow full menus, allow default shortcut menus etc). I have 2 questions: (i) is it possible to have a 'Save As' or 'Export...
  17. fionama

    Two Queries in A Crosstab

    Hi, That worked...thanks very much. I have done a further breakdown on the example given. Select Specialty_Code1, Consultant_Code, AdmissionDate AdmDate, 'Admission' as datetype, EpisodeNum, lower(Description) Specialty, Daycase,PatientStatus_Code, Discharge_Code from EpisodeI, Specialty where...
  18. fionama

    Two Queries in A Crosstab

    Hi, I am using Crystal Reporter V10 and a SQL Server database. I am trying to create a report in Crystal which runs off two queries. I have previously done this in Business objects. I want to show a table with a column of number of hospital admissions by specialty and consultant. This figure is...
  19. fionama

    Creating Time Brackets

    Hi, thanks for replying to this query. The syntax I am using does not recognose the 10pm to 8am time bracket however. All attendances falling between 10pm and 8am are going into the "Other" category. Does anyone have any ideas? if {@AttendanceTime}>=time("8.00am") and...

Part and Inventory Search

Back
Top