Search results

  1. C

    2 Groups To Show SubTotal and GrandTotal

    I cannot put this under the report footer, the grand total is for the 2nd group. There is another grand total to show all the final result. For the better illustration, click the attachment below which show to u the 2 major group, known as Process and Machine. Process is indicated as 1st...
  2. C

    2 Groups To Show SubTotal and GrandTotal

    There are 2 groups in report, I need to have show subtotal and grand total. How to do? Group 1: SubTotal ControlSource : =sum(OutQty) RunningSum: OverGroup Group 2: GrandTotal ControlSource : what key in ? Any advice ? RunningSum: what to choose?
  3. C

    Pass Value From Form To Report

    I have 2 questions here a) Control source can link to the variable inside a form , for example strStartDate and strEndDate ? b) How can we write the VBA in stead of through the windows ?
  4. C

    Pass Value From Form To Report

    Under Form Under Report How to receive the value send from FORM ?
  5. C

    Pass Value From Form To Report

    Thanks above, How to write under the form the VBA to pass the value to report? What you have stated above is code at report right? I am seeking any chance to write under form.
  6. C

    Pass Value From Form To Report

    How to write the VBA to pass a value from a control in a form to a control in a report ?
  7. C

    SetFocus - What is the right way to write ?

    Thanks for the above comment, but I don't quite like to be commented "I'm sorry, I'm not trying to be rude, but is English not your first language?" . You need to understand my VB and VB.Net programming backgound as explained in the earlier post and nothing to do with the LANGUAGE !!! However...
  8. C

    SubForm Refresh Delay Problem

    Delay means the syntax you write is correct, because the subform still able to show the data, it is still matter of time. Thus, nothing to do with the syntax. We need to consider other factors/issues like network, RAM, cache, etc As for my case, after several of R&D, it is due to the cache...
  9. C

    Where Clause Error In The DoCmd.OpenReport

    In the query, there are 2 important date field which is known as "StartDate" and "EndDate". There is another field showing the duration in hour between the "StartDate" and "EndDate", which is known as "Duration" [example: Duration: datediff("m",StartDate,EndDate) ] To execute the query...
  10. C

    Where Clause Error In The DoCmd.OpenReport

    I've detected the root cause. Thanks for your guide above.
  11. C

    Where Clause Error In The DoCmd.OpenReport

    How to filter this through query ?
  12. C

    Where Clause Error In The DoCmd.OpenReport

    The field is the date/time type. However, I got detect few invalid entries which do not fall in the above query range. For example : 24/12/463 (incorrect value in year). My questions now are as below a) Any method I can filter out those invalid entries through the docmd.openreport or other VBA...
  13. C

    Where Clause Error In The DoCmd.OpenReport

    Appreciate your help above. If I would like to filter out the Nulls and any invalid entries, how can I amend the code below ? DoCmd.OpenReport "Report_Machine_Utilisation_Time", acViewPreview, "OpnStartTime Is Not Null" , "OpnStartTime between " & Format(strStartDate, "\#mm/dd/yyyy...
  14. C

    Where Clause Error In The DoCmd.OpenReport

    Now in 24hour time, problem remain.
  15. C

    Where Clause Error In The DoCmd.OpenReport

    What is the conclusion?
  16. C

    Where Clause Error In The DoCmd.OpenReport

    1) When I try run the query, it works. Query.jpg show the example 2) When I run through the code, error prompt as above. Shown in VBA.jpg
  17. C

    Where Clause Error In The DoCmd.OpenReport

    Have tried, same error. Thanks strStartDate and strEndDate is the value from textbox, not the control textbox name. Maybe is better for me to include the whole code here. When i run debug.print , both strStartDate and strEndDate carry values.
  18. C

    Where Clause Error In The DoCmd.OpenReport

    Code rephrase as below DoCmd.OpenReport "Report_Machine_Utilisation_Time", acViewPreview, , "OpnStartTime between " & Format(strStartDate, "\#mm/dd/yyyy hh:mm:ss\#") & " And " & Format(strEndDate, "\#mm/dd/yyyy hh:mm:ss\#") & "" Error message: data type mismatch in criteria expression
  19. C

    Where Clause Error In The DoCmd.OpenReport

    Tested the SQL, it doesn't work. Syntax error, missing operator. Code written as below DoCmd.OpenReport "Report_Machine_Utilisation_Time", acViewPreview, , "OpnStartTime between " & cdate(strStartDate) & " And " & cdate(strEndDate) & ""
  20. C

    Where Clause Error In The DoCmd.OpenReport

    Error prompt at below code DoCmd.OpenReport "Report_Machine_Utilisation_Time", acViewPreview, , "OpnStartTime between #" & strStartDate & "# And #" & strEndDate & "#" a) Error message: data type mismatch in criteria expression b) Both strStartDate and strEndDate is value from TextBox c)...
Back
Top Bottom