Search results

  1. P

    Referring to main form when focus is in its subform?

    I have two tables. A table called tblPeople, many-to-many self-joined through the other table called tblPeopleJoin. That means there are two joins between tblPeople and tblPeopleJoin. The two joins are 1) from PeopleID and 2) from PeepleID in tblPeopleJoin on PeopleID in tblPeople and...
  2. P

    It would be great to edit some tables directly in Excel.

    This code by Jacob Mathai found in the code repository and pasted below, seems not to work. The first line does something good. The table opens in Access. The second line opens the Tools menu item in the VBE, and the third line opens the References menu item under Tools. To open a table in...
  3. P

    Current date on cool datepicker - SJMcAbney?

    How can I maintain the current date on this date-picker that Miles O aka SJMcAbney provided? The value line doesn't want to take anything but a date-constant. It has not worked from the VBE either. Could SJMcAbney please help?
  4. P

    How to open a form in another database and filter it.

    Does anybody know how to open a form in another database from a current database, filtered for the id of the current record? Much appreciated, Pierre.
  5. P

    Save/secure combobox filter result.

    I have a combobox limiting student slots to a certain number on a form 1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;... Private Sub cboName_AfterUpdate() On Error GoTo Err_cboName_AfterUpdate Dim strSQL As String strSQL = "SELECT * FROM qryAssignmentJunction WHERE StudentID <=...
  6. P

    Conditional formatting for current week's dates.

    The large block of coding below successfully conditionally formats the StartDate field's backcolor to yellow from the beginning of the current month to the current date. Private Sub Form_Open(Cancel As Integer) Dim fcd As FormatCondition With StartDate With .FormatConditions...
  7. P

    "All" included in combobox.

    This code comes out of an example in one of my books, of a combobox with ALL at the top of the drop-down list. SelectRecords refers to a public procedure. Can someone tell me what is wrong with the code? Please. Private Sub cboActivityType_AfterUpdate() On Error GoTo Error_Handler...
  8. P

    How are recordsets used?

    Recordsets seem to be a cornerstone of Access VBA. The books have pages and pages of examples without ever clearly telling a novice what it is used for. Could someone please explain what they are used for, then going through the books may make more sense?
  9. P

    No.7 Value for DoCmd at vbYesNo condition not working in nested If...Then.

    Access 2002 There are 4 fields on my form, StartDate, StartTime, EndDate and EndTime. EndDate + EndTime should always be larger than StartDate + StartTime. The first message box in the code below takes care of that. A second message box has to come up as soon as the difference above is 6...
  10. P

    Object Browser Help File not active!

    I've seen our moderator Miles'O Philes refer us to the Help-file of the Object Browser in the VBA-editor several times. I cannot get mine to be active. All I get is a blank screen in the Help-window. How do I activate it? It would obviously make a BIG difference in my learning curve.
Back
Top Bottom