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!

Toggle buttons

Status
Not open for further replies.

barra47

Programmer
Dec 25, 2002
86
0
0
AU
I have a form with 2 subforms
MainFrm
Subfrm1 used as a tool bar with several buttons
subfrm2 datasheet

In subfrm1 I have a Toggle button, when i click it, I want subfrm2 to display all records and with another Toggle button
I want to display only records where datefield has no date .

Hope that makes sense

Thanks in advance



 
How are ya barra47 . . .

One button updates the [blue]RecordSource[/blue] of subfrm2 with an SQL statement that returns all records. The other button updates with the same SQL only this time its appended with a WHERE clause comparing the datefield to NUll.

See Ya! . . . . . .

Be sure to see faq219-2884 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top