Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 22081

Report based on input search

$
0
0
I want to generate a report depending on user selectable field and search item. My table “Address” has three fields viz. “First Name”, “Last Name” and “Address”. Form has one textbox “txtText”, one Combo Box “cboItem” and one command button “cmdReport”. In combo box name of all the three fields is filled.
My question is, I want user to select field from the cboItem and type a search criteria in textbox, e.g. if he wishes to find out all the residents from Lucknow, he should type “Lucknow” in txtText and select Address in cboItem and click cmdReport. In this case a report must be generated with First Name, Last Name and Address having Lucknow in address.
Similarly for first name and last name.
I want to use DataEnvironment and one DataReport for generating the report.
Please suggest some solution and how to code.
I know it is possible with parameterized query but how and with only one DataReport is not clear to me.

Thanks in advance.

Viewing all articles
Browse latest Browse all 22081

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>