Recent content by joeselch

  1. J

    Audit Trail in Subform

    Time to troubleshoot... Is the audit trail code in the subforms being triggered at the appropriate time? If yes, then are the audit trail variables being correctly assigned values? If yes, then are the audit trail form fields being correctly populated by those variables?
  2. J

    Audit Trail in Subform

    In my case, I have included the audit fields on my form (visible = false). The code that writes the audit info puts the values into those form fields. This code is triggered by the Before Update event.
  3. J

    Audit Trail in Subform

    Yes - it does work for query-based forms (as all of mine are). Just include the audit trail fields in the query.
  4. J

    Passing a value from a table to a criteia

    Here is an example that may get you started... tables, queries, forms, reports. hope this helps
  5. J

    Passing a value from a table to a criteia

    How are the three things related - personid, clubid, unumber? What is the table structure of your database? I suspect you might have a table of persons and a table of clubs. And, if people can belong to more than one club, you have a many-to-many relationship between tables persons and clubs -...
  6. J

    Printing reports for current record

    Typically, this code would go in the On Click event of a button.
  7. J

    Passing a value from a table to a criteia

    There is an easier way... construct your tables so you aren't storing multiple values in a field. To handle the U numbers will require three tables: the table you've asked about a table of U numbers a table linking records from the first table to records in the U number table Do yourself a...
  8. J

    Basing a query on a combo box field

    If the value that is stored in the make field is a string, then the criterion must be enclosed in quotation marks - e.g., "BMW" If the value that is stored in the make field is a number (say, the primary key value from your makes table), then the criterion should be a number and not enclosed in...
  9. J

    Updating reports from a list box automatically...?

    Re Refreshing Report Reports are intended to be static snapshots - once generated, they are not updateable. As to whether you can cause a new report to be generated and "replace" the current report... I'm sure some clever coder on this forum can provide the gory details for you. Re Headers Not...
  10. J

    filter a field in the form

    It's probably possible to filter the form - I don't use filters, so I have no idea. Why don't you want to base your form on a query? It is generally best to use a (stored) query (rather than a table) as a form's record source. Among other things, using a query allows you to easily sort the...
  11. J

    SearchRecord by combo box

    If they're both text, then perhaps you need to enclose the Me![search] value in quotes: strSearch = "[id] = '" & Me![search] & "'"
  12. J

    filter a field in the form

    1) To show only records meeting a certain requirement, use a query with a WHERE clause as the recordsource of your form. 2) To have a sub-form show records related to the record shown in the main form, ensure that the Link Child Fields and Link Master Fields properties of your sub-form are set...
  13. J

    Limiting a list box

    Len, Here is an A2K example of the first option - storing the ID of the main contact in the Company table. Again, I'm still not sure that this is the "correct" approach. I've applied referential integrity rules to ensure that you can't delete a contact if that contact has been designated as...
  14. J

    Limiting a list box

    Len - I'm afraid I misunderstood the situation. It appears that you have a one-to-many relationship between Customer Companys and Customer Contacts... disregard my comments re junction table. You will need to decide whether you want to store the "main contact" info in the Company table or the...
  15. J

    Limiting a list box

    Len, You can't make a query of a form; queries are based on tables (or other queries). You should be making a query of the junction table that links customers and contacts. What are the names of this table and its fields?
Back
Top Bottom