linking form text box with VB code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tj 6
    New Member
    • Feb 2010
    • 4

    linking form text box with VB code

    Hi all i was wondering if any one could help me i'm tring to build a view by month calander to show client appointments i have a text box which starts with the current year which i'm planning to be able to change up and down at a later date using buttons but what i'm stuck on is selecting the current month in such away to link in with a table with the months inside and the number of days in each one partly so i can adjust the number of days for leap years using code i have developed
    the code is as follows so far:
    Option Compare Database

    Dim cYear As Integer
    Dim cMonth As String
    Dim isLeap As Boolean

    Private Sub Form_Current()
    cYear = year(Date)
    cMonth = Month(Date)
    isLeap = leapYear
    yearTextBox.Def aultValue = cYear
    End Sub
    Attached Files
  • nico5038
    Recognized Expert Specialist
    • Nov 2006
    • 3080

    #2
    Checkout the code behind the calendar in:
    http://www.mvps.org/access/forms/frm0052.htm and


    Nic;o)

    Comment

    • tj 6
      New Member
      • Feb 2010
      • 4

      #3
      Thanks i will do as soon as i get the chance people seem to think IT support means i have a magic wand to wave and there computer will be fixed instantly lol

      Comment

      Working...