Search results

  1. H

    Conditional Formatting Issue

    I think he means the "compare to other records" option in conditional formatting. Personally I've never used this feature, but other conditional formatting (background color) works fine for me with sorting & filtering. I am unsure how this would react when values are filtered, with the...
  2. H

    Audit Trail Help

    Hmm, I am eager to learn! I already read Minty's (new) Normalization explanation.
  3. H

    how make the nameof the user be viewed in unbounded field in a form

    [YourField] = Environ("UserName")
  4. H

    Audit Trail Help

    For normalization, you merely do the same things with all the different tables, in different audit tables.
  5. H

    Date Range Search Criteria not returning expected dates

    Your date picker probably results on a DateSerial, meaning that you need to take out the "#"'s.
  6. H

    subform only shows 2 rows

    Or turn on vertical scroll bars on the subform.
  7. H

    Audit Trail Help

    It really depends on how the form is used, but I have found the best way to set-up a reliable audit trail is to create a logging table, with more than twice the fields of the audited table: a field for each previous field, and a field for each for changed values. Then a field for the username as...
  8. H

    Increment letters VBA

    I did something similar to this (only one letter though), and I used another field for the letter, where a third field had the concatenated string (whole thing). Specifically, I wanted to be able to differentiate between serial numbers if two or more documents were accidentally given the same...
  9. H

    Report contains repeat lines of data...

    Don't do that. Use a query to query all 3 tables, then use the results in your report. You can then debug your query rather than debugging your report blindly.
  10. H

    query not working by changing field type from number to text

    The query must get it's information from somewhere, or to somewhere, did you change the type in the table too?
  11. H

    Refer to calculated field on Subform from Main form

    I see a possible issue here: this code appears to be wrote for the main form. And the code relies on a value in the subform, which is dependant on the current record. I would think the code should be modified to be moved to the "current" event on the subform. Also, IDK if it would also...
  12. H

    Recommendation for database back end server

    In my opinion, if all is within a LAN (single-location network), and not on Wi-Fi, you will not have any problems with the network. And as far as system specs go, a small database is no excersize for a desktop computer that is not extremely obsolete. However, weak computers like a "chromebook"...
  13. H

    search

    That's why I never use "IsNull(...)," instead I use a simple custom function: Public Function ZeroLength(InputVar As Variant) As Boolean '.................................................................... ' This simple function checks the variant, of any type, ' for either Null or...
  14. H

    Auto Search REF number with lookup?

    Like this: Private Sub TextBox_BeforeUpdate(Cancel As Integer) If Dcount("*","Tables![yourTableName]","[Field]=TextBox") <> 0 Then Cancel = True MsgBox "Value exists, try another..." End If Exit Sub End Sub Assuming your textbox is formatted to the same type variant as [Field] (otherwise...
  15. H

    Date Query

    Try making a new column in your query: Expr1: DateAdd("m", 3, Date()) Then in the conditional of your [FieldName]: Between Date() AND Expr1
  16. H

    Me.Dirty "Do you wish to save?" how to on unbound form?

    I see. I had to open an old database backup save to read this, as I had replaced all these with vba assignment instead. It turns out I was mistaken, it was: =DLookUp("[FieldName]","[TableQuery]") So (with mud on my face) 🥵 I was wrong, you can't save to the table/query this way through...
  17. H

    Me.Dirty "Do you wish to save?" how to on unbound form?

    If the table/query only has one record, then it isn't a problem. For instance, I use a database table to assign names of units to an entity, it only has one record - the current one. So there is no need to specify which record, it uses the only one. Hypothetically speaking, if one changes the...
  18. H

    Me.Dirty "Do you wish to save?" how to on unbound form?

    Edit, IDK about add.
  19. H

    Me.Dirty "Do you wish to save?" how to on unbound form?

    The same way you would refer to a table (or query) cell in vba, for instance: =Tables![yourTableName]![field] works for a single record table, or a singe record result in a query; =Tables![yourTableName]![field](index) may work for a multi-record table/query (not sure about syntax here).
  20. H

    Me.Dirty "Do you wish to save?" how to on unbound form?

    Unbound form does not mean unbound textboxes. You can bind individual textboxes to different sources. Otherwise, what data could you you talking about to save on that form?
Back
Top Bottom