Search results

  1. M

    Max() vs DMax()

    I am not quite clear on the difference between Max() and DMax(). Any clarity would be appreciated. Also, all the examples show Max() and DMax() being run against tables? Can you apply them to a recordset in VBA? What would be the proper syntax? It is not working for me, so either it cannot be...
  2. M

    Subreport Filters - AGAIN!

    I have a database in which I keep track of audit projects, the sites visted during each project and the staff members assigned to each project. Each of the three entities are indexed on their Project ID, Site ID and Staff ID, numbered consecutively. So I could have a ProjectID #4, a SiteID #4...
  3. M

    Subform Field display

    Picture, if you will, an Internal Audit department of a community college system. Each audit project can cover one or multiple campuses. A project can have one report for the overall project or multiple reports, one for each campus. On the master record for the project, I have a check box...
  4. M

    Restore My Menus

    I have an application that hides all the normal Access menus, so that the user can only use the buttons that I have put on the screen forms. Now however, when I open up access, I cannot get to any of the Access menus. It shows the toolbar, but not the normal FILE/EDIT...TOOLS/HELP menu. How do...
  5. M

    Lost Access Menu

    I recently had MS Access 2003 installed on my PC. When I open it up, I get the iconic menu bar, but not the text menu bar. Can anyone tell me how to make the menu come back.
  6. M

    Comparing two tables / subsets

    I have two tables or recordsets : A and B Both are fairly large, with up to 1500 records in each. Has anyone every written a procedure to determine if A = B or if A is a subset of B? I'd appreciate your thoughts on how to approach this. Thanks in advance.
  7. M

    Determine the calling procedure

    Is there a way to know, from within module C, whether it was called from module A or module B? In the VBA editor, there is a button for viewing the Call Stack. Can this stack be read from within VBA code? Thanks.
  8. M

    Seting subform's RecordSource

    Setting Subform's RecordSource I have a form with a large unbound subform area. Depending on which button is pushed on the Main form, I load various subforms into the unbound area. Some of these dynamically loaded subforms themselves have subforms. I want to programatically add a record to the...
  9. M

    Preview, then Print

    In my application, I have hidden all toolbars. This also disables the right-click capabilities. This is what I want. I don't want users accidently (or purposely) fiddling with underlying tables, etc. At some point, the user will request a report and the report is displayed in Preview mode...
  10. M

    CancelUpdate

    I have a form that displays a list of records. The user cannot edit these records but can select one and click the EDIT button that I provide. This will take him to another window that allows edits to be made to the selected record. This new window has a CONTINUE button and a CANCEL button. The...
  11. M

    Compare Tables

    If all the records in Table2 are in Table1, is there an easy way to tell WHICH records in Table1 are not in Table2?
  12. M

    Edit / No Edit in VBA

    I have a form that I have created with a Tabstrip and a large Unbound subform control. Depending on which button on which tab is selected, different forms are bound to the Unbound control using VBA. No problems there. A series of other buttons (not part of the Tabstrip) appear / disappear based...
  13. M

    Complex SQL sorting

    How complex can you get with the SQL ORDER BY clause? In the QBE, you can only put Ascending or Descending in the Sort cell for a field. But my query is too large for QBE and I have to use SQL. It's working fine, but now I want to add an ORDER BY clause. It needs to be conditional based on a...
  14. M

    Use of SWITCH in criteria field

    Can a SWITCH command return two or more values from a single comparison? Ex: Switch([Field]=Val1, 1, [Field]=Val2, 2 or 3) If I use QBE, I can put 1 or (2 OR 3) on the CriteriaLine depending on the value of Field and it will work fine. But how do I implement this using a Switch command. I...
  15. M

    Nested WITH statements

    Can WITH statements be nested? example dim rst as Recordset dim btn as CommandButton dim i as integer With rst If .RecordCount > 0 Then .MoveFirst Do Until .EOF for i = 1 to 4 With btn .Name =...
  16. M

    Query Select most recent record

    I have two tables, a Master table and a Details table. In the Master is one record per employee. In the Details table are multiple records for each employee. Each Details record is time and date stamped. If I query the tables, I get all the records from both tables. How do I query the tables so...
Top Bottom