Arg81
Well-known member
Something I posted before I went on holiday but had no replies to, I need some tips or pointers on the best way forward on a few things that are probably relatively simple, yet doing my head in.
1. I have a form for data viewing. The database has 10,000 + records. The users all have decided that they want to search either by ID or Customer.
What's the best way of doing this?
I'm thinking (correct me if wrong, or going wrong direction) that I need to create a SP for each search, so SP_getID and SP_getCustName.
Then I have a modal form for each SP which asks the user to input their selection of ID / Customer Name.
Once they have entered this and clicked btnOK on the modal form, it brings up the data viewing form with the filtered data.
I'm stuck at programming the button to do "Open frmInfo with the filtered data"
2. Another part which is confusing me - I'm designing the system as an MDI system, and the data viewing form is a child of the MDI parent with the menu. But if I've opened one of the modal forms (frmSearchID / frmSearchCustName) to ask the user for their input, when they click btnOK how can I tell frmInfo to open as a child of frmMain.
3. For frmSearchCustName, what I would like to do (this was easy in MS Access!!) is have the user select the customer from a combobox. Once they click btnOK, it does point 1 above.
This sounds stupid, but when the user selects the customer from the list and clicks them, is this stored so that the SP will take the value of combobox1.text as the parameter?
Thanks guys!!
Luke
1. I have a form for data viewing. The database has 10,000 + records. The users all have decided that they want to search either by ID or Customer.
What's the best way of doing this?
I'm thinking (correct me if wrong, or going wrong direction) that I need to create a SP for each search, so SP_getID and SP_getCustName.
Then I have a modal form for each SP which asks the user to input their selection of ID / Customer Name.
Once they have entered this and clicked btnOK on the modal form, it brings up the data viewing form with the filtered data.
I'm stuck at programming the button to do "Open frmInfo with the filtered data"
2. Another part which is confusing me - I'm designing the system as an MDI system, and the data viewing form is a child of the MDI parent with the menu. But if I've opened one of the modal forms (frmSearchID / frmSearchCustName) to ask the user for their input, when they click btnOK how can I tell frmInfo to open as a child of frmMain.
3. For frmSearchCustName, what I would like to do (this was easy in MS Access!!) is have the user select the customer from a combobox. Once they click btnOK, it does point 1 above.
This sounds stupid, but when the user selects the customer from the list and clicks them, is this stored so that the SP will take the value of combobox1.text as the parameter?
Thanks guys!!
Luke