Thanks,
I have two questions.
1) Where do I put the text box on the search form or results form?
this is on the search or criteria form:
On your form define a text box (say) txtSQL, with visible = false
2) Opening the results form what is the best way to do this is it ok to use the wizard and create a button or do I need to transfer the criteria which the user has entered in the text across.
this is in the results form, you do not need to 'pass' the criteria, you reference them from the results form on the criteria for, you leave the critirea form open, if you do not want user to see it set its visible property to false:
then the code to open the view form
in the on open event of the 'view form'
put code
Me.Recordsource = Forms!frmCriteria!txtSQL
Me.Requery
Also can I show collums which I am not searching in? or would it be better to add all fields to the search form I wish to display in the results form?
If you use SELECT * as I induicated, then all columns in the table (or query) will be available for display, not just those searhed on
If you can help with this I would be very grateful
Many thanks
Malc Regards
Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
kenneth.reaySPAMNOT@talk21.com
remove SPAMNOT to use