Search results

  1. R

    Export To Excel - User Type Not Defined

    Hi All, I am exporting data from a query to an excel file using the following code from the Knowledge Base: http://support.microsoft.com/kb/904953 I have the code set up as follows: Public Sub WorkArounds() On Error GoTo Leave Dim strSQL, SQL As String Dim Db As ADODB.Connection...
  2. R

    MS Access - can't deal with recurring numbers?

    I have a query which does some calculations. It is limited to 1 decimal place, and this works fine. However, when it returns a recurring number, it is not limited to 1 decimal place. E.G. 7.78156765 rounds up to 7.8 7.33333333 displays as 7.333333334 Is this a bug or is there something else...
  3. R

    VBA + checkbox to select report

    Brilliant Thank you!
  4. R

    VBA + checkbox to select report

    My bad - needed quotes! However, it now prints the report, rather than opens it! I never expected this to be so awkward.
  5. R

    VBA + checkbox to select report

    ahh ok, i see where I was going wrong now. I get an error as follows now: action or method requires argument report name it picks up this line on the debugger: DoCmd.OpenReport (rptRemainingRubberSummary) I have verified that this is the correct report name and can't see the problem
  6. R

    VBA + checkbox to select report

    So, from what I understand the of the structure, if I changed the Else to and ElseIf that would work. However, I get the same error. Im probably missing something obvious, but I never ever write VBA so i'm a newbie to it.
  7. R

    VBA + checkbox to select report

    Hi i am new to using VBA, so please excuse my ignorance. I am trying to use the following code to select a full or summary report: Private Sub Command25_Click() If Me.Check20 = False Then DoCmd.OpenReport (rptRemainingRubber) Else: If Me.Check20 = True Then DoCmd.OpenReport...
  8. R

    Report will not show identical lines

    aha! sorted. thanks for your help!
  9. R

    Report will not show identical lines

    Have now changed the SQL as you advised so that it now looks like the following: SELECT qryEfficiencyUnbound.[Vehicle Reg], qryEfficiencyUnbound.Tyre, qryEfficiencyUnbound.Pattern, qryEfficiencyUnbound.OTD, qryEfficiencyUnbound.RTD, qryEfficiencyUnbound.Cost, qryEfficiencyUnbound.[Price Per...
  10. R

    Report will not show identical lines

    I have a report which calculates the value of the tyre rubber remaining on a vehicle. The report is based on the following query: SELECT qryEfficiencyUnbound.[Vehicle Reg], qryEfficiencyUnbound.Tyre, qryEfficiencyUnbound.Pattern, qryEfficiencyUnbound.OTD, qryEfficiencyUnbound.RTD...
  11. R

    Using tickbox/dropdown on form to customise query

    Is there a good example anywhere that you would recommend? & if not, is there another way around this for someone who has never written VBA Thanks
  12. R

    Using tickbox/dropdown on form to customise query

    Hi everyone, I have set up a email contacts database for creating email lists. It contains both fleet and tyre dealer customers. I have created a form which (will) allow users to customise the query to give them the appropriate list of contacts. The form has a series of dropdown and tick boxes...
  13. R

    you tried to execute a query which does not include the specified expression as part

    Ok i've just reviewed my sample DB and the query works. But it still does not work in the other database! The only difference is that I have made the sample a .mdb file instead of .accdb would this really make a difference?
  14. R

    you tried to execute a query which does not include the specified expression as part

    No there are no summaries in there (unless i'm missing something). I have attached a sample db with the query in it because hopefully it will show what I cant describe so well.
  15. R

    you tried to execute a query which does not include the specified expression as part

    Thanks for your replies. To answer your question: a) [inspectiondate] is in the query. The query contains every field in the table. It would be easier to give customers a datasheet view. But, it is the layout of the data that is important - it has to be laid out in a vehicle schematic style...
  16. R

    you tried to execute a query which does not include the specified expression as part

    I have a report based on a simple select query (Access 2007). When I run the query, everything is fine and I get the results I expect. However, when I run the report I get the error "you tried to execute a query which does not include the specified expression [tblinspection].[inspectiondate]...
  17. R

    Query Results Display Primary Key Value, Not Text Value

    Thanks again for your reply Like I said, I never built this particular DB, but I do use it from time to time to compare work actioned to invoices etc. I was thrown by the missing relationships at table level. Still, i'll make the changes to it and get everyone updated.... (:mad:) many thanks...
  18. R

    Query Results Display Primary Key Value, Not Text Value

    Please find attached the 2 tables and the form which lies over the top of the inspections table I really appreciate your help!
  19. R

    Query Results Display Primary Key Value, Not Text Value

    Thats what I don't understand though. I have checked the data types in both tables, and they match. If I am using the table from which the original value derived, as a lookup, then their should be no type mismatch. Which poses the question, why does the table which the query selects from...
Back
Top Bottom