Computer Learning Zone CLZ Access Excel Word Windows

A leader is judged not by the length of his reign but by the decisions he makes.

-Klingon Proverb
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Back to Microsoft Access 207    Comments List
Upload Images   Link   Email  
Recurring Condition
Emad 
    
9 years ago
Hello, Access 2013-Recurring Condition does not work with me, I convert the Macro to VBA to show you what I did
'------------------------------------------------------------
' TaskCovertto_VB_RecurringM
'
'------------------------------------------------------------
Function TaskCovertto_VB_RecurringM()
On Error GoTo TaskCovertto_VB_RecurringM_Err

    With CodeContextObject
        If (.RecurringCombo = 1) Then
            Forms!TaskF!DueDate = Forms!TaskF!DueDate + 1
            ' Daily
        End If
        If (.RecurringCombo = 2) Then
            Forms!TaskF!DueDate = Forms!TaskF!DueDate + 7
            ' Weekly
        End If
        If (.RecurringCombo = 3) Then
            Forms!TaskF!DueDate = Forms!TaskF!DueDate + 14
            ' BiWeeks, means 2 weeks
        End If
        If (.RecurringCombo = 4) Then
            Forms!TaskF!DueDate = Forms!TaskF!DueDate + 30
            ' Monthly
        End If
        If (.RecurringCombo = 5) Then
            Forms!TaskF!DueDate = Forms!TaskF!DueDate + 90
            ' Quarterly
        End If
        If (.RecurringCombo = 6) Then
            Forms!TaskF!DueDate = Forms!TaskF!DueDate + 360
            ' Annually
                End If
    End With


TaskCovertto_VB_RecurringM_Exit:
    Exit Function

TaskCovertto_VB_RecurringM_Err:
    MsgBox Error$
    Resume TaskCovertto_VB_RecurringM_Exit

End Function


Reply from Alex Hedley:

What happens instead?

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Microsoft Access 207.
 

 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 1/26/2025 12:07:28 AM. PLT: 1s