Message 1 of 5
Can I pass parameter(s) to a form while opening?
Not applicable
03-27-2002
06:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can I pass parameter to a form?
I have various combos like cboVessel, cboPump etc. placed on a form and a cmdEdit button.
(1) When user presses cmdEdit button it should open a form appropriate to active combo. i.e. if active control is cboVessel then form for Vessel should be shown. if active control is cboPump then form for Pump should be shown.
(2) Appropriate data also should be shown on appropriate form e.g. if cboVessel contains text 10-V-101 then form for vessel should be shown along with data picked for vessel bearing tag no. 10-V-101.
Part (1) was solved with setting Tag property of cmdEdit to various string values based on Enter event of combo and executing form.show method on click event through select case structure.
But Part (2) sounds very difficult.
Any Help!
TIA
Nimish
I have various combos like cboVessel, cboPump etc. placed on a form and a cmdEdit button.
(1) When user presses cmdEdit button it should open a form appropriate to active combo. i.e. if active control is cboVessel then form for Vessel should be shown. if active control is cboPump then form for Pump should be shown.
(2) Appropriate data also should be shown on appropriate form e.g. if cboVessel contains text 10-V-101 then form for vessel should be shown along with data picked for vessel bearing tag no. 10-V-101.
Part (1) was solved with setting Tag property of cmdEdit to various string values based on Enter event of combo and executing form.show method on click event through select case structure.
But Part (2) sounds very difficult.
Any Help!
TIA
Nimish