Unfortunately this is easier to do than to explain.
So, I try to teach you how to learn from others.
Open the objects (tables, forms, queries, reports etc) in design view (and show, of course, the Property Sheet)
Do this in a logic order: tables first then queries then forms then reports
For each object look in each tab of the Property Sheet and see what settings are there.
Example:
- For Table1 is nothing to view. It is a very simple table that I use to test the program.
- Next (logic) I designated the form. So open this form in design view.
Again nothing new for the form itself.
- Select the combo
This time, under "Data" tab in the Property Sheet on the row named Row Source you see this: All;C_Name;C_City;C_Pin
Ask yourself what is this. You will quickly understand that this are rows in your combo.
Switch to "Event" tab. Again something new: On the row named On Click you will see: [Event Procedure] What is this ? Click the 3 dots at the end of the row and... voila ! here is defined how the program react when you click something in your combo: the program will open the report.
Now you think: Nothing new. I already know how to open a report. What I saw until now not explain how the report display one field or other one. So where is the code for this ? And the answer come itself: in the report.
So close the Visual Basic window, close the form and
- open the report in design view
Now take (again) a look to the Property Sheet.
Under the "Event" tab on the row On Activate something new: [Event Procedure]
Click the 3 dots and...
Ups ! Here is more code.
Try to understand what the code do. Next time you will know how to deal with a problem like this.
So:
First is a Select Case statement.
Do you know how this statement work ? If not, google until you have a good idea.
Then something become invisible ( Object.Visible = False)
Then some objects are moved. How ? Google and understand what is the .Left property.
And so on.
After you understand my code you should take a look and try what Pat suggest.
Of course that you will have more question. But either Pat either me or others will give you the answers that will help you to move a step forward.
Good luck !