hi..
i have a problem with subform filter..
i have 2 tables: called 'comp' with companies info, and subform 'news' with news about this company.
company has ID as a primary key, and some others.
news has ID_NEWS as PK and ID_COMP as foraign key from company, DATE of news and others.
then i have main form called "super" and subform "new" which shows news about this company.
i would like to have a textbox in which i enter the date, and find all news from that date.
i tried to use filtering.
i have textbox called find_date and button "find"
Private Sub find_Click()
DoCmd.ShowAllRecords
Dim criteria As String
criteria = find_date.text & "=" & DATE
DoCmd.ApplyFilter , criteria
End Sub
this doesent work..
any ideas? maybe totally diferent solution than filtering?
thanks.
mateusz.
i have a problem with subform filter..
i have 2 tables: called 'comp' with companies info, and subform 'news' with news about this company.
company has ID as a primary key, and some others.
news has ID_NEWS as PK and ID_COMP as foraign key from company, DATE of news and others.
then i have main form called "super" and subform "new" which shows news about this company.
i would like to have a textbox in which i enter the date, and find all news from that date.
i tried to use filtering.
i have textbox called find_date and button "find"
Private Sub find_Click()
DoCmd.ShowAllRecords
Dim criteria As String
criteria = find_date.text & "=" & DATE
DoCmd.ApplyFilter , criteria
End Sub
this doesent work..
any ideas? maybe totally diferent solution than filtering?
thanks.
mateusz.