Recent content by Michael J Ross

  1. M

    Exporting Report to a txt file problems

    Thanks! I'll give that a try.
  2. M

    Exporting Report to a txt file problems

    Hi I have a report which I want to export to a txt file as it is to be used as a source file for upload into another system. I can't export directly from a query as the txt file needs to be in a format I can't get directly from a query. I have some problems with it, firstly some of my labels...
  3. M

    Eliminating Duplicates in a Query

    Hi Use Max on the date something like SELECT Tablename.Opportunityfield, Max(Tablename.Date) AS MaxOfDate FROM Tablename WHERE (((Tablename.Date) Between #8/1/2009# And #8/31/2009#)) GROUP BY Tablename.Opportunityfield;
  4. M

    Calculating Percentage

    How about this?, all in a single expression, shouldn't ask for parameters as long as you are using fields from a table or another query in the query. Total%: 0.4*([Field1]/[Field2])+(0.6*([Field3]/[field4]))
  5. M

    Finding "missing" records

    You need to join the tables using a left outer join, and under the criteria of student id in the grade level enter Is Null.
  6. M

    Update Query

    Great glad to help Edit just realised i gave you it the wrong way round, but glad you cracked it.
  7. M

    Update Query

    Yep thats right, update closing first. The code will be somrthing like below, replacing table1 with your table name and correct field names, copy it into the sql view of a blank query. UPDATE Table1 SET Table1.Closing = [Table1].[Opening];
  8. M

    Update Query

    You'd need to run two queries i think, the first to transfer the closing to opening and the second to set the other values to zero.
  9. M

    How do I allow a specific user permission to process only certain records

    Sorry my fault, didnt copy code in, try this one. You need to type Paul or John in Text0 and tab. If you want to automatically pick up the user logged in the database, which looking at your original question you do, set the control source of the text0 to =CurrentUser. Access 2000 isnt a...
  10. M

    How do I allow a specific user permission to process only certain records

    Hi See the attached it should give you some idea, look at the after update event of Text0 on the form and the On click event of the command button. Also see the criteria in Query3
  11. M

    Run-time error 13 Type Mismatch

    Thanks Bob, that did the trick. :)
  12. M

    Run-time error 13 Type Mismatch

    Hi Been away from access for a while, I'm trying to run the following code When i do i get the Run-time error 13 Type Mismatch error, when I click debug it takes me to Set MyRS = MyDB.OpenRecordset("Table1") Anyone got any ideas on what the mismatch is? Thanks in advance for any input
  13. M

    Using Table data in Criteria of Query

    Great glad to help.
  14. M

    Using Table data in Criteria of Query

    Use a form to enter the dates on and reference the form in each of the queries. Add 2 text boxes to a form and in your queries set the criteria (substituting with actual form name and text box names) to: Between [Forms]![Nameoftheformyoucreated]![Nameoftextboxfromdate] And...
  15. M

    Reportdate?

    If you go into the design view of your query, under the date field you are querying enter the between [Forms]![Rapportdatoområde]![Startdato] AND [Forms]![Rapportdatoområde]![Slutdato] on the Criteria line which is located under Show in the query grid.
Back
Top Bottom