Question : Access Search Form


Hi,

Whats the best method to use in Access when you want a user to be able to pick certain fields/columns from an Access Table.

So i would like a user tohave a form which querys a table and then can output to excel. I would like the user to have flexibility in choosing the fields they wish to search.

Thanks
Seamus

Answer : Access Search Form

store the field name in an array at backend

say
Dim MyArray(99) as string

here store value for each fieldName

MyArray(1) = 'Field1name'
MyArray(2) = 'Field2name'


in the frontend
now create array of checkbox for each field

and then loop though a sql query for ticked checkbox fields and pass the build up query to transferspreadsheet function
Random Solutions  
 
programming4us programming4us