Sorry, I should have said, I'm not particularly strong when it comes to
expressions etc. Am i trying something very complex here? I have a database
with many fields such as date, name, department and have set a subform named
updates with a one to many link between the id numbers. I would like this
form to be the search GUI. I want the form to be blank and when a search
button is clicked for it to return all records related to the entered data
ignoring those with no data entered.
Sorry to be a dummy haha
Thanks
> In the Form RecordSource you can refer to the text boxes and filter by them,
> so only the related records will apear, and by adding another criteria return
[quoted text clipped - 20 lines]
> >
> > Thanks
Ofer Cohen - 15 Jun 2007 12:46 GMT
Let start in stages, will start with one text box for the filter
Create a MainForm called - MainFilter
Create a text box in the main form, called - department
Create a Button the main form to active the filter
Create a sub form Called- SubFilter, and bound it to the table (record source)
select * From TableName
***********************
At that stage when the form is run all the records in the sub form will apear
***********************
Now add the filter to the SubForm using the record source
select * From TableName Where department = Forms![MainFilter]![department]
Or Forms![MainFilter]![department] Is Null
***********************
On the On Click event of the button write
Me.[SubFilter].Requery
Make sure that the subform control has the same name as the subform
***********************
Now,try it , anter a value in the text box and press the button.
If that will work well be able to move to the next text box

Signature
Good Luck
BS"D
> Sorry, I should have said, I'm not particularly strong when it comes to
> expressions etc. Am i trying something very complex here? I have a database
[quoted text clipped - 32 lines]
> > >
> > > Thanks
rjw24 - 15 Jun 2007 13:52 GMT
I did everything as u said but the only way I could enter the code in the
record source for the subform was to create a query, When I search for a
department which I know is included in some records, all are filtered out.
Dont give up on me yet, im not too far away!
> Let start in stages, will start with one text box for the filter
>
[quoted text clipped - 58 lines]
> > > >
> > > > Thanks
Ofer Cohen - 15 Jun 2007 17:31 GMT
Post the structure of the table
TableName, fields names and type.
'
Tomorow I'll send you an MDB sample with a form,
Please include your EMail Address
UserName <@> hotmail <.> com

Signature
Good Luck
BS"D
> I did everything as u said but the only way I could enter the code in the
> record source for the subform was to create a query, When I search for a
[quoted text clipped - 63 lines]
> > > > >
> > > > > Thanks
rjw24 - 18 Jun 2007 10:09 GMT
The table is called 'tblEvents' and contains the following fields:
Event Number, Auto
Entry Date, Date/Time
Entry Time, Date/Time
Allocated Person, Text(Look-up)
Review Date, Date/Time
Business Area, Text(Lookup)
Date of Occurance, Date/Time
Department, Text (Lookup)
Status, Text (Lookup)
SBU, Text (Lookup)
Plus a few other fields which are irrlevant
email: robwhelan99@hotmail.com
Thanks
> Post the structure of the table
>
[quoted text clipped - 73 lines]
> > > > > >
> > > > > > Thanks