Search results

  1. EdFred

    Last day of month - how do you do it?

    Well that's certainly a lot simpler than what I did. :D
  2. EdFred

    Last day of month - how do you do it?

    I need to return the last date of the month not for this month, but 6 months down the road. When the FAA says 6 calendar months from a certain date it would mean go 6 months forward and then to the end of the month. So with today being April 11th, I would count 6 months forward to October, and...
  3. EdFred

    Deleting 5 year old records!

    Sometimes I just do it manually. Make a simple query for that table with the date <= now()-1825 and then click the upper left corner, and hit the delete button. Voila! Don't even bother saving the query.
  4. EdFred

    Lost records due to power cut

    Ohhh how I hate autonumbers with their wee beady eyes... I had this issue with invoice numbers and so I incorporated it in the BeforeUpdate section of the code. Private Sub Form_BeforeUpdate() If IsNull(me.Invoice_Number) Then Me.Invoice_Number = DMax("[Invoice Number]", "[Invoices]")...
  5. EdFred

    Sounds in Access

    It's even simpler. You don't even need the "docmd." just Beep :)
  6. EdFred

    Different Quarter then default

    Change months as ncessary. Public Function FiscalYear(Datestring As Date) As Integer Dim MonthString As Integer MonthString = Month(Datestring) Select Case MonthString Case 1, 2, 3, 4, 5, 6 FiscalYear = Year(Datestring) Case 7, 8, 9, 10, 11, 12 FiscalYear =...
  7. EdFred

    Different Quarter then default

    Change month numbers as necessary. Public Function Quarter(Datestring As Date) As Integer Dim MonthString As Integer MonthString = Month(Datestring) Select Case MonthString Case 1, 2, 3 Quarter = 1 Case 4, 5, 6 Quarter = 2 Case 7, 8, 9 Quarter = 3 Case...
  8. EdFred

    excel to access

    Memo field as opposed to text.
  9. EdFred

    Make text box go red if after todays date?

    Timer function set to 50 ms. Oh the horror!!!
  10. EdFred

    On Timer to redisplay a form

    Instead of event procedure, click the three dots next to the drop down and go to the code builder. Code would be similar to this Private Sub FormName_Timer() Me.Requery End Sub Then set your timer length in millseconds (numbr of seconds x 1000) in the form properties.
  11. EdFred

    If A is true, then do B

    If Me.Label5 = -1 Then If Me.Text34<=2644 Then Me.Text34 = 0 etc...
  12. EdFred

    If A is true, then do B

    vba code can be your friend.
  13. EdFred

    Is there anyway to blank a text box on a form

    SO I understand this, this text box you WANT to write the value to a table, or do NOT WANT to write the value in the text box to a table?
  14. EdFred

    Is there anyway to blank a text box on a form

    Dont tie the control source to anything. Just make the control source the formula necessary to display the information
  15. EdFred

    How to tackle duplicate records issue

    Add a year field and set the default to be =year(now()) ??
  16. EdFred

    You know you need a life when in your spare time...

    Take out the WinAmp library in the references in VbA. I was experimenting with Winamp before deciding on Windows Media Player for the player. Oops.
  17. EdFred

    You know you need a life when in your spare time...

    As requested. Obviously you'll have to feed/replace your own sounds files into the table. As you can see in the table, I have no gaps in the autonumber, so if you end up with gaps, you're going to end up with problems, mostly because I didn't put an error handler in my code in case the random...
  18. EdFred

    Avoid Duplicating in a given Condtion

    On my purchase order items table I simply have primary keys of PONumber and ProductID, No coding necessary. PS - I'm a heretic, I don't use autonumbers. But it saves coding down the line.
  19. EdFred

    Total Cost

    =CCur(Proc.Column(2))+CCur(Ram.Column(2))
  20. EdFred

    Total Cost

    The SQL statement used to build your combo box(es)
Back
Top Bottom