Recent content by fergler

  1. F

    Date format problem

    Works perfect. Thanks!
  2. F

    Date format problem

    I have a dialog form with a date field, formatted as Short Date, that updates a listbox. I set it up so that when the form opens, the date field is populated with the current date, which can then be changed if needed by the user. The code is on the OnOpen Event and is: Me!startdate = Now()...
  3. F

    Limit number of records in subform

    Thanks everyone for all your help. It turns out, after investigating further, that for some reason my link between the main form and the subform was cancelled or corrupted. So, even though the subform would open, it was opening to a blank record. Now that that is fixed, I am able to...
  4. F

    Limit number of records in subform

    Thanks Gemma. Yes, I want to limit the items per the main record to 5. I'm sorry, I can't quite figure out how allowadditions = dcount("*"",recordsource)<5 fits it with my current code.
  5. F

    Limit number of records in subform

    The code was placed in the subform.
  6. F

    Limit number of records in subform

    I want to limit the number of records in my subform to 5. I've tried different codes found on this forum: Form_Current If RecordsetClone.RecordCount >= 5 Then Me.AllowAdditions = False End If End Sub Or: Private sub Form_BeforeInsert (Cancel as...
  7. F

    Audit Trail Date Problem

    The code currently in the Onclick event is =CalendarFor([Effective End Date],"Select the Ending Date") The rest of the code for opening the calendar is: Option Compare Database Option Explicit 'Calendar form variable: Public gtxtCalTarget As TextBox 'Text box to return the date from the...
  8. F

    Audit Trail Date Problem

    RG: Sorry to be so dense, but I'm still not sure what code I should be writing. The cmdenddate button triggers the calendar form to open, the cmdok button on the calendar form closes the calendar. If I put the code behind the cmdenddate button, my choices seem to be only OnEnter, OnExit...
  9. F

    Audit Trail Date Problem

    I use a command button to trigger the Pop Up calendar. A command button on the calender is used to close it. I'm not sure what you mean by "If so then Pop Up the Calendar modal and save the Audit detail when the code gets back." Should I be doing an Onclose event on the calendar form?
  10. F

    Audit Trail Date Problem

    RuralGuy: cmdEndDate was actually the command button that triggered the pop-up calendar, which I finally figured out was wrong to have in my audit code, so it's been removed. The code for the audit table is something I picked up from the internet at...
  11. F

    Audit Trail Date Problem

    Gemma: I did finally find something on the internet that indicated that changing data by using VB or a macro won't trigger the BeforeUpdate/AfterUpdate events. I've been trying tirelessly today to figure out what code might need to be added to make this work. I was using the AfterUpdate event...
  12. F

    Audit Trail Date Problem

    Craig: Below is a sample of the code I'm using. I don't know a lot about developing code, so I generally find what I can on the internet, which is where I found this. What happens is a temp database is created every time a form is opened, and the changes are saved to the temp table. Once the...
  13. F

    Audit Trail Date Problem

    I have been setting up an audit trail for my database, and I'm having a bit of a problem with dates. I have date fields where the date can either be entered manually or by a pop up calendar. If the date is entered manually, the change is added to my audit table. If the date is added via the...
  14. F

    Create report converting year to months

    I'm trying to create a report that takes an activity occuring over a specific period of time and show the individual months it applies to. For example, I have a person who has committed 50% of his time to a project with an effective start date of 1/1/07 and an effective end date of 12/31/07. I...
  15. F

    Transparent subreport

    I have a report in which the rows are alternating shades of gray and white. I'm adding a subreport where the rows of data will line up with the rows of data in the main report. I've made the subreport fields transparent, but because I can't seem to remove the background color of the details...
Back
Top Bottom