R
Regan via AccessMonster.com
hi. In my startup form i have a textbox withthe control source =Date()
[text27]. I have another textbox(unbound) [text29] where i want to put
another date. What i want to do is when [text27] = [text29] then 'do some
stuff' [text29] = [text27]. How do i put the a value in [text29] and keep it
there?. i put in 21/07/06 in the default value and when i reload the form it
comes up 30/12/1889. i haven't done programming but this is what i think i
want to do
Private Sub Form_Open(Cancel As Integer)
Dim DNW As Date
Dim DTD As Date
Dim stdocname As String
DTD = Text27.Value
DNW = Text29.Value
stdocname = "WageBal"
If DNW = DTD Then
Text29.Value = DTD + 7 ' and date stay there until it is reached again.
its not satying there now
DoCmd.OpenForm stdocname
'do some stuff and close form
Else
Exit Sub
End If
End Sub
i hope this makes sense
thanks
[text27]. I have another textbox(unbound) [text29] where i want to put
another date. What i want to do is when [text27] = [text29] then 'do some
stuff' [text29] = [text27]. How do i put the a value in [text29] and keep it
there?. i put in 21/07/06 in the default value and when i reload the form it
comes up 30/12/1889. i haven't done programming but this is what i think i
want to do
Private Sub Form_Open(Cancel As Integer)
Dim DNW As Date
Dim DTD As Date
Dim stdocname As String
DTD = Text27.Value
DNW = Text29.Value
stdocname = "WageBal"
If DNW = DTD Then
Text29.Value = DTD + 7 ' and date stay there until it is reached again.
its not satying there now
DoCmd.OpenForm stdocname
'do some stuff and close form
Else
Exit Sub
End If
End Sub
i hope this makes sense
thanks