Query or a filter function?

bmwccn

New member
Local time
Today, 21:31
Joined
Apr 20, 2004
Messages
7
I`m making a database for a company as my graduation assignment. It is almost finished, but the Queries are still to be done. The company wants to get data out of the database using several input parameters. What is the simplest thing to do? Should I make queries, or use the filter function in Access? The firm that I am working for is not very much into Access, so I must make it simple for them. After much trying, I like the filtering best. Can this be done easely for people who does not have much experience with access? Formfiltering or something??
 
bmwccn said:
I`m making a database for a company as my graduation assignment. It is almost finished, but the Queries are still to be done. The company wants to get data out of the database using several input parameters. What is the simplest thing to do? Should I make queries, or use the filter function in Access? The firm that I am working for is not very much into Access, so I must make it simple for them. After much trying, I like the filtering best. Can this be done easely for people who does not have much experience with access? Formfiltering or something??


Well, personally I would use Parameterised queries, do something like give them a combo box to select their criteria from, then give them an option to add more different types of criteria into the combo box.

This would be easy and much more maintainable.

If you need advice on how to do this then let me know
 
SQL_Hell said:
If you need advice on how to do this then let me know

I'd like some info on doing this if possible... Do you have any example code? I think I have an idea of how I would work it but would like to see how it is already done...

Thanks,
Sam
 
dsmaj said:
I'd like some info on doing this if possible... Do you have any example code? I think I have an idea of how I would work it but would like to see how it is already done...

Thanks,
Sam


No code, sorry mate all in my head.

Ok for an example, if you want to base the criteria of a query from the value of the combo box on a from you could do this:

say the form is called form1 and the combo is called combo1 (original I know)


SELECT *
FROM table
where field1 = forms!form1!combo1


there ya go, hope thats what you meant
 

Users who are viewing this thread

Back
Top Bottom