Search results

  1. P

    Dynamic Page Header Based on Page Contents

    Whoa ! Peter
  2. P

    Dynamic Page Header Based on Page Contents

    Thanks for the reply. How did you 'see' there were two passes? You have obviously been able to break into the process between them, to write your array, so any could any control's value be changed at that time, do you think? Cheers
  3. P

    Dynamic Page Header Based on Page Contents

    Any channce of you sharing some of your code, sounds interesting? Cheers
  4. P

    Add Data To Report

    Can't you add the Version table to the underlying query?
  5. P

    Altering RecordSource property

    I was afraid of that! I found a useful link that describes exactly what I want to do and the example there works perfectly. I am even more puzzled now! :rolleyes: Cheers http://www.fontstuff.com/access/acctut19.htm
  6. P

    Altering RecordSource property

    It seems that some report properties can only be set in vba in design view and others only in preview. Are these 'rules' detailed somewhere? Altering the recordsource in design view then open in preview works fine, however... I am also taking the user input to provide a heading and discount...
  7. P

    Altering RecordSource property

    RG, I think the Where condition will not allow me enough options but I will have a look at it Thanks
  8. P

    Altering RecordSource property

    Thanks Brian opening in design view worked ! Cheers
  9. P

    Altering RecordSource property

    Thanks for your replies. And congratulations Liverpool celebrating Capital of Culture tonight! The code is on a db at work so this is from memory Report has Record source of a query by default Form button vba is currently as follows: Assign user entered data Create SQL string from a template...
  10. P

    Altering RecordSource property

    Can anyone help me solve this? A form takes some user entered data and provides a button to open a report in preview. I want the report to get its record source dynamically, from the form (an SQL string). If I run the code with report closed it errors saying it isn't open or misspelt. If I run...
  11. P

    Help with SQL statement in VBA

    You have proabably cracked it by now but you could put a Debug.print SQLtext line under it and then look at how it is being read in the Immediate window
  12. P

    SQL to generate Reports

    I have found a start to a solution but come up with an odd error It is possible to set the RecordSource property of the report in VBA so the SQL string can be 'put' there. If I run my code with the report not open I get an error saying the report is not open or reference is spelt incorrectly If...
  13. P

    Complex Problem

    Then I suggest you add an extra field to your table for 'cumative total' and sum all the records in to that each time they entered. That way you can query the table to find the max ABS value of the cum' total and it associated date detail. Peter
  14. P

    Export to CSV

    Too late now but you have to provide a Specifcation to export with that command, for example DoCmd.TransferText acExportDelim, strSpec, strFile, "Z:\strTxtFile & ".txt", True Creating the export spec is easy but convoluted to find. You have to manually export the table, choose the csv type and...
  15. P

    Complex Problem

    Are the impact figures daily measurements? It is difficult to handle if they are associated to varying date ranges. If the dates are not important can you just not sum all positive impacts for each reference, and the last entry date detail? Peter
  16. P

    SQL to generate Reports

    So no suggestions then ??? Peter
  17. P

    Complex Problem

    Neil, it seems I haven't understood your question! You want to sum the impacts with the same ref no, in a date range, and just see which one has the highest value? Or see the day that has the highest sum of a single reference? Please give us some more to work with! Peter
  18. P

    Complex Problem

    As very simple way, but a bit clumsy, would be to select the data with parameters in the Query. Place: Between [Start Date?] And [Finish date?] in the Criteria of both the Start Date field and Finish date fields. and [Reference?] in the criteria of the Ref field. Then run the query. It will...
  19. P

    SQL to generate Reports

    I am trying to tidy up some report code and add some new features, can anyone point me in the right direction. What I currently have is: 8 Reports based on 8 queries all listed in a macro. The user clicks the button the macor runs and 8 reports are previewed. I want to 'convert' this to VBA...
  20. P

    Linking Database records

    They both Front End / Back End Dbs so what you have suggested is the same as my first thought. I just hoped there might be a quicker/easier way !
Back
Top Bottom