G
Guest
i'm trying to compute a date in the future based upon the following:
a) user input current date
b) interval
c) interval type
using DateAdd function.
thus far, my code is a follows:
Private Sub NewAppntmnt_AfterUpdate()
Me.NewAppntmnt.Requery
Dim CrntAppt As Date
Dim IntervalType As String
Dim Interval As Integer
NewAppntmnt = DateAdd(Me.IntervalType, Me.Interval, Me.CrntAppt)
End Sub
currently, using my copy of the production database, all my variables above
are unbound. ultimately, the would appear in the table underlying the form.
nothing is happening as i input CrntAppt in a text control and select
IntervalType and Interval from their respective comboboxes.
can anybody help this newbie?
thanks for any bandwidth!
a) user input current date
b) interval
c) interval type
using DateAdd function.
thus far, my code is a follows:
Private Sub NewAppntmnt_AfterUpdate()
Me.NewAppntmnt.Requery
Dim CrntAppt As Date
Dim IntervalType As String
Dim Interval As Integer
NewAppntmnt = DateAdd(Me.IntervalType, Me.Interval, Me.CrntAppt)
End Sub
currently, using my copy of the production database, all my variables above
are unbound. ultimately, the would appear in the table underlying the form.
nothing is happening as i input CrntAppt in a text control and select
IntervalType and Interval from their respective comboboxes.
can anybody help this newbie?
thanks for any bandwidth!