Recent content by vwgolfman

  1. V

    Simple Query based on another simple query not working

    It's OK I've realised my mistake :D My second query should of course, have referred to the first query. i.e. "FROM qryAveData" Cheers :)
  2. V

    Simple Query based on another simple query not working

    Hi, I wonder if some kind soul can help me please? I have a query which is based on another query. When the second query runs, it asks for parameters but these values should be returned by the first query. Why could this be? Queries (simplified).... qryAveData: SELECT Avg(tblData.Par) AS...
  3. V

    Why does Summary Query generate rogue values?

    Hi MStef. When I check the field in Datasheet view, the value is 147319.7 After some reading it appears that the reason I am seeing rogue values is that the number is stored as a floating point number. This means that it is stored approximately and not exactly.
  4. V

    Why does Summary Query generate rogue values?

    Hi, A field in a table has the following properties... DataType: Number Field Size: Single I have ONE record in the table and the value for the above field is 147319.7 When I display this record in a report by using a "Detail Query" the value for the field is correctly displayed as...
  5. V

    How do I cancel a report from opening?

    Edit: Thanks for your help guys, very much appreciated and all sorted now :)
  6. V

    How do I cancel a report from opening?

    Hi, Original post EDITED: In a Report_Open method, if there are no records I would like to display a messagebox with a warning message (specified by me) and then Cancel the Report from opening. I don't want a messagebox popping up telling the user that the report opening has been cancelled...
  7. V

    How to replace textbox's control source with hard-coded text?

    Woohoo! Thanks Paul, that's the business :)
  8. V

    How to replace textbox's control source with hard-coded text?

    Another quick one guys (on another topic).... I am adding "All" to the choices in a ComboBox by using the following SQL.... SELECT BusinessModel, BusinessModel FROM tblBusinessModels UNION SELECT '*', '(All)' FROM tblBusinessModels; Column 1 is the bound column and I am giving it width of...
  9. V

    How to replace textbox's control source with hard-coded text?

    I'm sorry Paul I must have made a typo. Yes it works fabulously thank you! Thank you to you too Ken. No, I didn't want to have to type the text in each time the report opens :)
  10. V

    How to replace textbox's control source with hard-coded text?

    I want to specify the text in the Report_Open method Ken.
  11. V

    How to replace textbox's control source with hard-coded text?

    Hmm, Neither of these work guys. When the report is called, it pops up a window asking for input.
  12. V

    How to replace textbox's control source with hard-coded text?

    Hi, In a report I have a textbox which displays the value of a field (its control source). Under certain conditions I would like to remove the "binding" for that textbox and replace the displayed text with something specified by myself. I intend to use the report's Report_Open method in...
  13. V

    How to set the Record Source for a Report using VBA?

    OpenArgs is indeed what I have gone for :D Thanks guys Woohoo!!
  14. V

    How to set the Record Source for a Report using VBA?

    Thanks both very much for two excellent methods to use. I have considered both and also my project scenario and have come to the conclusion that the best option for me would be to set the query in the report's open event BUT... Is it possible to pass the Query Name over to the Report_Open...
  15. V

    How to set the Record Source for a Report using VBA?

    Paul, What I failed to mention (as I wanted to keep it simple) is that there are 2 buttons and several comboboxes on the form. The RecordSource is determined by a combination of which buttons is clicked and the options chosen in the comboboxes. For this reason I believe the RecordSource...
Back
Top Bottom