Tay
likes garlic
- Local time
- Today, 19:32
- Joined
- May 24, 2002
- Messages
- 269
On my main form which lists scheme details, I have a button which opens a search form. This has cascading combos on it. Once the user has selected what they want, they press a button and then return at the record they chose on the main form.
However, I realised that the search form could be used on 4 other forms too.
Rather than having 5 copies of the same search form, it would make sense to try to get the one search form to realise which form it was supposed to open. That's where I come unstuck, as I'm not sure how to go about this.
Here is what I want to happen.
from Main form - open Search form - find record - go to that record on Main form
from Enter Scheme form - open Search form - find record - go to that record on Enter Scheme Form etc.
But I don't know how I can get the search form to go to the correct record on the correct form (ie, the form which opened the search form from it).
If anyone could advise me how to go about this, I'd be very happy indeed.
However, I realised that the search form could be used on 4 other forms too.
Rather than having 5 copies of the same search form, it would make sense to try to get the one search form to realise which form it was supposed to open. That's where I come unstuck, as I'm not sure how to go about this.
Here is what I want to happen.
from Main form - open Search form - find record - go to that record on Main form
from Enter Scheme form - open Search form - find record - go to that record on Enter Scheme Form etc.
But I don't know how I can get the search form to go to the correct record on the correct form (ie, the form which opened the search form from it).
If anyone could advise me how to go about this, I'd be very happy indeed.