Search results

  1. MarkK

    Crosstab/Parameters/Reports combo

    Just guessing, but try reversing these two lines. If you set the SQL of a query, I would expect this automatically invalidates its previous parameters collection.
  2. MarkK

    Call function in other Database

    When you build a house you do not build a kitchen under one roof, and a bedroom under a different roof, and a bathroom under still another. To make living your life easier, you build one roof, and you build all the rooms of your house very closely connected. Apply this thinking to your...
  3. MarkK

    How to display the value of Textbox at the same time

    Maybe elaborate on this.
  4. MarkK

    Query to to exclude records with a date within last 4 months, and show records where most recent date is older than that

    I don't see why you even need a subquery. Does this query work with your data? SELECT tv.Centre_ID, Max(tv.Date_visited) AS MaxOfDate_visited, tc.[Centre Name], tc.Suburb, tc.Region FROM t_Centres As tc INNER JOIN t_Visits As tv ON tc.ID = tv.Centre_ID GROUP BY tv.Centre_ID, tc.[Centre Name]...
  5. MarkK

    Active X Error when emailing from Access

    Things that help: 1) indicate what line causes the error. 2) use code tags. Code is hard to understand, especially other people's code. Preserving your indents and structure helps a lot. 3) post all the code. hth
  6. MarkK

    Entering the attendance of the whole class with a default value automatically

    If what matters to your goal is attendance, not absence, then only track attendance. If there is no attendance record, the student did not attend. To query this data, use an outer join. If the linked table row ID is null, a row does not exist, and, depending on what angle you came at it from...
  7. MarkK

    Entering the attendance of the whole class with a default value automatically

    I would not record both presence AND absence. It is a boolean value, and therefore impossible in the real world that both might exist. Thus, make it impossible in your model as follows-->assume one, and record the other. Create a tAbsent table that stores PK, StudentFK and Date, and you are...
  8. MarkK

    Why we were forced to Jab & Mask

    Everything?
  9. MarkK

    Solved Freeze the recordset of a search form

    Yeah, you don't want to pollute your Orders table with what is essentially user interface state information. Here's how I'd clean up the code...
  10. MarkK

    Solved Freeze the recordset of a search form

    Or you can do this, where you save the filtered IDs only to a different table. Then drive the search result form off a query that joins those selected IDs back to the order table. In that case the search results are not actually driven by the filter, they are driven by the IDs that initially...
  11. MarkK

    Solved Freeze the recordset of a search form

    Just don't requery the result form on AfterUpdate, like... Private Sub Form_AfterUpdate() ' Me.Requery ' don't do this End Sub ... and *poof* the edited record doesn't go away.
  12. MarkK

    QR code or Bar Code

    Implement the system first. When it is working, then worry about barcodes. Barcodes are just a faster way to type. What are the fields, for instance, in your Parts table? If you can't answer that question, you are not ready for barcodes. hth
  13. MarkK

    Not sure if this is a query, combo box, SQL or VBA problem

    If you have a tPurchaseOrder table containing a field called CreatedByEmployeeID, which is a foreign key to a tEmployee table, then you can create a query, say Query1 ... SELECT DISTINCT CreatedByEmployeeID FROM tPurchaseOrder Query1 gives you the list of employees you need to show in your...
  14. MarkK

    Not sure if this is a query, combo box, SQL or VBA problem

    Populate your combo using a different source. Create a distinct query on the IDs you must have appearing in the list. Then join that query to your list of people, including in that result query a flag that indicates if that person is still eligible to be selected. You might prefix non-eligible...
  15. MarkK

    Need for assistance using DSUM

    If you use a subquery rather than DSum(), you won't need to worry about date formats, like SELECT fordate.ada, ( SELECT Sum(pamounts) FROM Amanat WHERE pdate <= fordate.ta ) AS SumPriors, fordate.ta FROM fordate;
  16. MarkK

    Mapping VBA Code to show tables affected by VBA

    Yeah, I use the AI all the time, probably more than google, depending on what I am trying to solve. The AI can even write code, I mean, not that well, but I asked it: Can you write me a VBA subroutine to find a WorkOrder in the fWorkOrder form's recordset using WorkOrderID? It provided... Sub...
  17. MarkK

    Deleting record

    Excellent point.
  18. MarkK

    Encountered strange interaction between Excel data and MS Access Link / Import

    have you refreshed the link, or tried to link it again and see if you get the same result?
  19. MarkK

    Deleting record

    I would never navigate in a recordset to perform a delete. If you know the ID of the row, and you are happy to perform a requery after the operation completes, use an SQL delete command, like... Private Sub cmdDelete_Click() Const SQL_DELETE As String = _ "DELETE FROM tContact WHERE...
Back
Top Bottom