2 hours ago: OK, I think I got the pesky Javascript error fixed. If you still see any popup error messages let me know. Thanks.  Dismiss
 
Computer Learning Zone CLZ Access Excel Word Windows

Every brilliant experiment, like every great work of art, starts with an act of imagination.

-Jonah Lehrer
 
Home   Courses   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Back to Microsoft Access 207    Comments List
Recurring Condition Upload Images   Link   Email  
Emad 
8 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 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 2/22/2024 8:44:07 PM. PLT: 1s