Search results

  1. B

    Changing Closed Report's control's ControlSource

    Urgh - figured it out. I created my template from a copy of one of the other reports. I had left the control sources as bound. Setting them as unbound allowed be to change the control source with :- Reports!rpt2Cols.rpt2ColsDetail1.ControlSource = "qryAbortRegion.Region"...
  2. B

    Changing Closed Report's control's ControlSource

    This issue I have is that I'm not running the code in the open and load events. I have a "report dashboard", with around 30 different reports. Around half follow the same report structure, so I want to use a report template for all 15. My thinking was to change the report's properties upon...
  3. B

    Changing Closed Report's control's ControlSource

    Hi, I have a report that I open via a button that I'd like to use as a template. I've been able to change the recordsource, etc. Where I'm struggling is the controls. If I don't set the Controlsources, Access asks for them via parameter. If I just click okay, the report opens as expected. If...
  4. B

    Summing 2 subqueries

    Thank you.
  5. B

    DMax but less than

    Thank you.
  6. B

    DMax but less than

    Hi, I'm using the following in VBA :- MaxVal = DMax("Sales_Ref","tblQuotesNew") But how can I get the max Sales_Ref that is below 10,000? Thanks in advance
  7. B

    Issue opening table. Access asking for parameter value

    No, I'm using the pane
  8. B

    Issue opening table. Access asking for parameter value

    When opening a table, I am now being asked to enter a parameter value for "Lookup_Supply__ID.SupplyID". The table I'm trying to open does have a field "Supply_ID" (one underscore), and there is a relationship from that field to another table. I understand the issue I have is a little vague...
  9. B

    Running total in query without key

    Please see attached - thanks I'm also trying Ranman256's report option
  10. B

    Running total in query without key

    Hi all, I have a query where I need to record a running total. My current code is below SELECT tblBrokerages.BDM_Name, Format([DateTPIAgreementSigned],"mmm-yy") AS xMonth, Count(tblBrokerages.DateTPIAgreementSigned) AS Original FROM tblBrokerages GROUP BY tblBrokerages.BDM_Name...
  11. B

    Query not sorting as required by date

    Works perfectly - thanks Minty
  12. B

    Query not sorting as required by date

    Hi all, I have the following query :- SELECT tblBrokerages.BDM_Name, Format([DateTPIAgreementSigned],"mmm-yy") AS Expr1, Count(tblBrokerages.DateTPIAgreementSigned) AS CountOfDateTPIAgreementSigned FROM tblBrokerages GROUP BY tblBrokerages.BDM_Name, Format([DateTPIAgreementSigned],"mmm-yy")...
  13. B

    using Like (or alternative) in SQL via VBA

    Thanks Minty, that's exactly what I needed.
  14. B

    using Like (or alternative) in SQL via VBA

    I'm more than happy to have the wildcard return only "begins with" results, if someone could shoe me the syntax.
  15. B

    using Like (or alternative) in SQL via VBA

    It does have to be VBA unfortunately. My whole search form is built around it.
  16. B

    using Like (or alternative) in SQL via VBA

    Hi all, I'd like to use the equivalent of Like in an SQL query via VBA. The code below finds the exact value :- strSQL = "SELECT tblBrokerages.ID, tblBrokerages.Brokerage_Name AS [Brokerage Name], tblBrokerages.Broker_Code AS [Broker Code] FROM tblBrokerages WHERE tblBrokerages.Brokerage_Name...
  17. B

    Show dcount result in command button caption

    Thanks again.
  18. B

    Show dcount result in command button caption

    Thanks - can this be done in desgin view? I tried using "Number of quotes by status " & DCount("*","qryAcceptedQuotes") but that literally showed in the caption
  19. B

    Show dcount result in command button caption

    Hi all, I'm trying to show text and a dcount result in a command box's caption. I've tried the following without success :- [CODE]Number of quotes by status & =DCount("
  20. B

    Query based on multiple criteria

    Perfect - thank you. The SQL I ended with was :- TRANSFORM Count(tblQuotes.Sales_Route) AS CountOfSales_Route SELECT tblQuotes.Region FROM tblQuotes WHERE (((tblQuotes.Sales_Route)<>"0")) GROUP BY tblQuotes.Region PIVOT tblQuotes.Sales_Route;
Back
Top Bottom