Hey all..
I'm trying to create a form which will allow searching on multiple/various fields. I have several unbound controls and a search button which builds a SQL string based on the controls that have data. The form's recordsource prop is then set to the SQL statement. This all works just fine - I can see the correct records in textboxes, BUT I would like to show the resulting records in a listbox and I can't - for the life of me - figure out how to specify the fields in the rowsource property! In the SQL statement, I've specified field names for all columns (SELECT quote.cquoteid AS QuoteID...) and in the listbox, I've tried setting rowsourcetype = FieldList and rowsource to QuoteID... to no avail.
Could someone Please lend a hand? Thank you!
-- michael~
I'm trying to create a form which will allow searching on multiple/various fields. I have several unbound controls and a search button which builds a SQL string based on the controls that have data. The form's recordsource prop is then set to the SQL statement. This all works just fine - I can see the correct records in textboxes, BUT I would like to show the resulting records in a listbox and I can't - for the life of me - figure out how to specify the fields in the rowsource property! In the SQL statement, I've specified field names for all columns (SELECT quote.cquoteid AS QuoteID...) and in the listbox, I've tried setting rowsourcetype = FieldList and rowsource to QuoteID... to no avail.
Could someone Please lend a hand? Thank you!
-- michael~