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 bkrike 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 jckokko

  1. jckokko

    Delete From table where exists (select...);

    The table have total 17547 records. Below query returns 1980 records: SELECT DISTINCT [mytable].[SUB NO], [mytable].TAX, [mytable].DATE, [mytable_1].TAX, [mytable_1].DATE FROM [mytable] INNER JOIN [mytable] AS [mytable_1] ON [mytable].[SUB NO] = [mytable_1].[SUB NO] WHERE...
  2. jckokko

    Memo Field Truncated

    dhookom!!!! You da man! I see you everywhere. I don't know what Tek-Tips.com can do without you. You deserve MVP! Thanks a lot for quick response. God bless you.
  3. jckokko

    Memo Field Truncated

    Needs some help to rewrite this query so that memo field does not get truncated: SELECT DISTINCT ServiceRecords.ServiceRecordID, Customers.CustomerName, ServiceRecords.CustomerID, Orders.PONumber, OrderItems.ItemNumber, ServiceRecords.SerialNumber, ServiceRecords.ProblemDescription...
  4. jckokko

    How to format or order the Row Heading in a Crosstab query

    Here's my query that returns what I need. This query sorts the tblContribution.Type in ascending order: PARAMETERS [Forms]![YearlyReport]![Start] DateTime, [Forms]![YearlyReport]![Start] DateTime; TRANSFORM Sum(tblContribution.Amnt) AS AmntOfSum SELECT tblContribution.Type...
  5. jckokko

    Add text based on results

    I just decided to cancel the Report Open event using "On No Data" event. Thanks.
  6. jckokko

    Add text based on results

    Yes to the first and second questions. tblContribution.Type, tblContribution.Amnt are the control source where I see #Error.
  7. jckokko

    Add text based on results

    Here's the query. PARAMETERS [Forms]![IndividualContributionReport]![cbxIndividualName] Text ( 255 ); SELECT tblContribution.Type, tblContribution.Amnt FROM tblContribution WHERE (((tblContribution.Contributor)=[Forms]![IndividualContributionReport]![cbxIndividualName])); This query may return...
  8. jckokko

    Add text based on results

    This time I am changing the design of the query. A customer never used a service so there's no charge. So the customer's report has no data to display, and I get #Error for the Amnt field. I tried =[Amnt]+ " ", but it didn't work.
  9. jckokko

    Add text based on results

    Thanks Duane. It worked. It seems that Microsoft Access is full of quick and dirty or inconsistent solutions which are patched as issues occur.
  10. jckokko

    Add text based on results

    Yes, it could help if I added a statement explaining what I am trying to do. Sorry Duane. I will be more careful next time. I will try your suggestion and let all know. Thanks.
  11. jckokko

    Add text based on results

    [Forms]![?????????]![???] = [Forms]!YearExpenseMonthlyReport]![BeginDate] [Forms]![?????????]![????] = [Forms]!YearExpenseMonthlyReport]![EndDate] AS ?? = AS Total
  12. jckokko

    Add text based on results

    PARAMETERS [Forms]![?????????]![???] DateTime, [Forms]![?????????]![????] DateTime; TRANSFORM Sum(tblExpense.Amnt) AS AmntOfSum SELECT tblDepartment.Name AS DepartmentName, tblExpenseCategory.Category, Sum(tblExpense.Amnt) AS ?? FROM (((tblExpense INNER JOIN tblDepartment ON tblExpense.DepId =...
  13. jckokko

    Add text based on results

    Yes, the query is a crosstab.
  14. jckokko

    Add text based on results

    What if the field [NoOfDaysTaken] does not exist? In another word, the query didn't return the field. The query will return the field for next month. Can I put a place holder?

Part and Inventory Search

Back
Top