H
Haim Beyhan
Hi,
I'm using Access 2002. I have a continuous bound form.
I have also a textbox on form header, which I enter date and the form shows
the records according to this date. Now, this works without problem. I have
also 2 buttons under the textbox in form header which should show me the day
before and the other one the day next.
The problem is, when I click one of the 2 commands to show me the day before
or the next day, the textbox is not updated although msgbox shows the
correct value.
txtFITRH is the textbox on the form header which should show the correct
date value when I click the buttons.
Private Sub cmdPrevDay_Click()
tmpdate = DateAdd("d", -1, tmpdate)
ShowDay
End Sub
Private Sub cmdNextDay_Click()
tmpdate = DateAdd("d", -1, tmpdate)
ShowDay
End Sub
Private Sub ShowDay()
txtFITRH = tmpdate
Me.InputParameters = "@ptrh1 datetime='" & tmpdate & "', @ptrh2
datetime='" & tmpdate & "', @pfno1 nchar(7)=NULL, @pfno2 nchar(7)=NULL,
@pftip tinyint=Forms!FrmImalat!fraTip"
End Sub
I'm using Access 2002. I have a continuous bound form.
I have also a textbox on form header, which I enter date and the form shows
the records according to this date. Now, this works without problem. I have
also 2 buttons under the textbox in form header which should show me the day
before and the other one the day next.
The problem is, when I click one of the 2 commands to show me the day before
or the next day, the textbox is not updated although msgbox shows the
correct value.
txtFITRH is the textbox on the form header which should show the correct
date value when I click the buttons.
Private Sub cmdPrevDay_Click()
tmpdate = DateAdd("d", -1, tmpdate)
ShowDay
End Sub
Private Sub cmdNextDay_Click()
tmpdate = DateAdd("d", -1, tmpdate)
ShowDay
End Sub
Private Sub ShowDay()
txtFITRH = tmpdate
Me.InputParameters = "@ptrh1 datetime='" & tmpdate & "', @ptrh2
datetime='" & tmpdate & "', @pfno1 nchar(7)=NULL, @pfno2 nchar(7)=NULL,
@pftip tinyint=Forms!FrmImalat!fraTip"
End Sub