Hello there,
I'm quite busy laying out my table and relation structure for my project.
But now I got something I don't know how to do, and i guess you guys can help me.
It's a program designed for a community centre with multiple rooms a customer can rent.
It will be possible for the administrator to add a new customer and put in preferences from the customer. Preferences consist of things like the price for coffee which was agreed but also the rooms they like to have whenever they come the the community centre. They can give up preferences for multiple rooms (and they can also use multiple rooms at once during their appointment)
For the preferences I got this table setup: See attachments 'tableDesign1.jpg'
So far so good, i guess (didnt try on a form to add but as far as I know this is the good table setup)
Now, the problem, when an appointment is made, the administrator who adds an appointment gets to see which preferences are made. He gets to see that in a form, and he has the possibility to change one or more of the preferences for just that appointment. The changed values gets stored in the table.
But now I want the following. If you open the form, you have a control for the coffeePrice. It will be a textbox. The default value from the textbox will be taken from the field in the Preference table. Is that possible or is the control's default value property only for static values?
The administrator will be able to change that value and when the form is saved the value will be stored in the right field.
And the next one, a little bit harder, I want to create the same for the room preferences. But now it's not always just 1 value, since it could be multiple values and they are stored in the many-to-many table.
Is this even possible to create?
Long story, but I almost got a mental breakdown thinking of a solution.
Would be really nice if someone can help me with this.
If any more information or pictures are needed I would really like to hear it so I can clarify it.
Thanks in advance
I'm quite busy laying out my table and relation structure for my project.
But now I got something I don't know how to do, and i guess you guys can help me.
It's a program designed for a community centre with multiple rooms a customer can rent.
It will be possible for the administrator to add a new customer and put in preferences from the customer. Preferences consist of things like the price for coffee which was agreed but also the rooms they like to have whenever they come the the community centre. They can give up preferences for multiple rooms (and they can also use multiple rooms at once during their appointment)
For the preferences I got this table setup: See attachments 'tableDesign1.jpg'
So far so good, i guess (didnt try on a form to add but as far as I know this is the good table setup)
Now, the problem, when an appointment is made, the administrator who adds an appointment gets to see which preferences are made. He gets to see that in a form, and he has the possibility to change one or more of the preferences for just that appointment. The changed values gets stored in the table.
But now I want the following. If you open the form, you have a control for the coffeePrice. It will be a textbox. The default value from the textbox will be taken from the field in the Preference table. Is that possible or is the control's default value property only for static values?
The administrator will be able to change that value and when the form is saved the value will be stored in the right field.
And the next one, a little bit harder, I want to create the same for the room preferences. But now it's not always just 1 value, since it could be multiple values and they are stored in the many-to-many table.
Is this even possible to create?
Long story, but I almost got a mental breakdown thinking of a solution.
Would be really nice if someone can help me with this.
If any more information or pictures are needed I would really like to hear it so I can clarify it.
Thanks in advance