Dave 14867
Registered User.
- Local time
- Today, 12:52
- Joined
- Jan 1, 2017
- Messages
- 56
Hello all,
I need to grab a field in a table "tblMain" field named "Interval" and use it to calculate a new date in a different table "tblPass" field name "NextDate"
I have what I want working on a form and it works perfectly in the If statement below,
' If Me.Term = "Months" Then
' Me.NextDate = DateAdd("m", Me.Interval, Me.Date)
' End If
I need to get the original "Interval" and "Term" from the tblMain table rather than enter it on the form, possibly entering in incorrect data.
While writing this I could also (maybe just as easily and maybe better way) have the Form fields on the subform populated with the data in the "tblMain" table for the record in use. Would that be workable? If I was to use that method, my original "If" statement would still work properly.
Thanks
Dave
I need to grab a field in a table "tblMain" field named "Interval" and use it to calculate a new date in a different table "tblPass" field name "NextDate"
I have what I want working on a form and it works perfectly in the If statement below,
' If Me.Term = "Months" Then
' Me.NextDate = DateAdd("m", Me.Interval, Me.Date)
' End If
I need to get the original "Interval" and "Term" from the tblMain table rather than enter it on the form, possibly entering in incorrect data.
While writing this I could also (maybe just as easily and maybe better way) have the Form fields on the subform populated with the data in the "tblMain" table for the record in use. Would that be workable? If I was to use that method, my original "If" statement would still work properly.
Thanks
Dave