C
Chris75 via AccessMonster.com
Hi AccessVandal,
Neither worked.
Although I am seemingly closer to where I was.
Clean slate:
Major form is called Employees.
Subform is called schedule.
No issues with the relationship.
In the subform, I have the fields WorkDate, In and Out from the table.
I also have the unbound fields :TotalHrs, BeginDate and EndDate.
I want to filter dates in the subform such that when a date range is entered,
the records are updated automatically leaving only records that correspond to
the date range entered.
It was suggested that the subform be based on a query. However, the criteria
aspect didn't work for me because when I entered in the subform, I was
immediately asked to enter the BeginDate and EndDate. That is not what I
wanted. I want to view the subform. Be able to enter or modify dates, times,
etc. I also want to be able to enter the date range and then have the record
updates. This could be from a command button or pressing enter, although the
button maybe preferable.
Any suggestions?
I have to say thank you to everyone who has given there input.
Neither worked.
Although I am seemingly closer to where I was.
Clean slate:
Major form is called Employees.
Subform is called schedule.
No issues with the relationship.
In the subform, I have the fields WorkDate, In and Out from the table.
I also have the unbound fields :TotalHrs, BeginDate and EndDate.
I want to filter dates in the subform such that when a date range is entered,
the records are updated automatically leaving only records that correspond to
the date range entered.
It was suggested that the subform be based on a query. However, the criteria
aspect didn't work for me because when I entered in the subform, I was
immediately asked to enter the BeginDate and EndDate. That is not what I
wanted. I want to view the subform. Be able to enter or modify dates, times,
etc. I also want to be able to enter the date range and then have the record
updates. This could be from a command button or pressing enter, although the
button maybe preferable.
Any suggestions?
I have to say thank you to everyone who has given there input.
Since your form is bound to the table, why not just use the Form's filter?
Create a button near the textboxes..something like
Private Sub YourCommandButtonName_Click()
Me.Filter = "SomeDate Between " & Me.StartDate & " AND " & Me.EndDate
Me.FitlerOn = True
End Sub
Not sure of the ocotorp/hash thingy, if don't work try
"EndDate Between #" & Me.StartDate & "# AND #" & Me.EndDate & "#"
[quoted text clipped - 12 lines]Hello,Chris