Hello friends,
Thanks to your terrific help. I have been able to almost complete by small application with exactly all the functions I wanted.
There is still one other thing which I just cannot resolve. I will briefly explain what I need and post a sample of my database.
My database has a main table named Clients.
When I open the program, I get the frmMenu which is a sort of a Main Menu form, on which I have placed an empty Sub form (SubMaster) uses as a sort of “container" for all the other sub forms that I want to load.
In my examples you will notice two cmd buttons which open two different Sub Forms. You can try the Search by File no. This will open the Sub Form named SubSearchbyFileNo.
On this Sub Form there is a cmd button, a text search box and a list box which uses the text box as query criteria.
What I am trying to do is to open an individual form (OpenClients) by double clicking on the listbox which at this point will be used as criteria to open the OpenClients form. This individual form should also open and viewed in the SubMaster (basically in my container).
I know the best way is to have a text box on the frmMenu which will be used as criteria to open the form OpenClients but just cannot make it work. I have tried both these codes but not working:
=[Forms]![SubSearchbyFileNo]![lstsearch].[column](0)
=[Forms]![frmMenu]![Submaster]![SubSearchbyFileNo]![lstsearch].[column](0)
The first column of the list box will be used as criteria.
Thank you for any help and please advise if you need further clarification.
Thanks to your terrific help. I have been able to almost complete by small application with exactly all the functions I wanted.
There is still one other thing which I just cannot resolve. I will briefly explain what I need and post a sample of my database.
My database has a main table named Clients.
When I open the program, I get the frmMenu which is a sort of a Main Menu form, on which I have placed an empty Sub form (SubMaster) uses as a sort of “container" for all the other sub forms that I want to load.
In my examples you will notice two cmd buttons which open two different Sub Forms. You can try the Search by File no. This will open the Sub Form named SubSearchbyFileNo.
On this Sub Form there is a cmd button, a text search box and a list box which uses the text box as query criteria.
What I am trying to do is to open an individual form (OpenClients) by double clicking on the listbox which at this point will be used as criteria to open the OpenClients form. This individual form should also open and viewed in the SubMaster (basically in my container).
I know the best way is to have a text box on the frmMenu which will be used as criteria to open the form OpenClients but just cannot make it work. I have tried both these codes but not working:
=[Forms]![SubSearchbyFileNo]![lstsearch].[column](0)
=[Forms]![frmMenu]![Submaster]![SubSearchbyFileNo]![lstsearch].[column](0)
The first column of the list box will be used as criteria.
Thank you for any help and please advise if you need further clarification.