Show all data off a combobox on a subform

mtagliaferri

Registered User.
Local time
Today, 15:42
Joined
Jul 16, 2006
Messages
550
I have a subform for a hotel list, I have a combobox on the subform that show the list of the hotels, what I need is to create some fields on the subform wich shows me all the details of the hotel as address, email, facilities once I have selected a hotel from the combo list.
How can I achieve this!
Thanks
Marco
 
Have a look at the attached sample, is this how you want the subform to work?

Have a look in the tables and see how the data is stored.
 

Attachments

Hi John A, That is what I am aiming at, thanks very much for your help, I will be able to solve my problem.
Marco
 
John, I have inserted the sfrmSub into a TAB CONTROL, doing this I loose the function of the subform, How come this?
Marco
 
mtagliaferri said:
John, I have inserted the sfrmSub into a TAB CONTROL, doing this I loose the function of the subform, How come this?
Marco

Have a look at the sample.

I would say that you have added the subform and it can't find the main form, so when you try and add a record to the subform it won't save the record because it can't find the related record in the main form.
 

Attachments

Hi John, thaks for the quick reply, I am still having problems!!! What I am doing is fraghing the sfrmSub into the TAB CONTROL, what I obtain is a blank rectagular with no subform, once I run the form normally I will see the subform but this will show all the records off the subform and not the one related.
Am I so thick that cannot understgand to procedure to do it :(
 
The One You have sent me it works, but if I drag the sfrmSub on the spare TAB it doesn't work.
What is the master child link?
 
If you don't know about "Child" and "Master" , then may I suggest that you do bit Of "Searching" in the forums and on Google and reading of the Help section in Access.

They are used to link the Main Form and the Subform (In a 1 - Many relationaship "Each Record in a subform must have a related record in the main form")
 

Attachments

Users who are viewing this thread

Back
Top Bottom