Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filter > today's date

Status
Not open for further replies.

SDS100UK

MIS
Jul 15, 2001
185
0
0
GB
Hi,

Ac xp

I have a form bound to a table.

The form has a list of shows along with the date of the show

I have an unbound check box in the header of the form that when it is ticked I want to just show the shows that have a 'show date' greater than todays date and when not ticked shows all shows (inc those that have passed)

I have the following code in the BeforeUpdate of the check box.....
If Me.chkFutureShows = -1 Then
Me.Filter = Me.ShowDate > Date
Me.FilterOn = True
Else
Me.FilterOn = False
End If

What is wrong? As it will not work. It shows me all shows which ever option is selected.

TIA


Steven
 
put the code into the on_click procedure.

It works for me..

Hoep this helps.
 
How are ya SDS100UK . . . . .
Code:
[blue]Me.Filter = "[ShowDate] > Date"[/blue]



Calvin.gif
See Ya! . . . . . .
 
ACEMAn youre FANTASTIC!

That worke dgreat.

Thank you somuch. Its odd how something so little can drive you insane - and the answer is so simple!

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top