brentos2004
Registered User.
- Local time
- Today, 21:29
- Joined
- Nov 30, 2005
- Messages
- 11
Hi Im new to the forum and new to the world of using VB in Access so any help with this would be appreciated.
Ive created a database that Is going to create data sheets. I have two main tables ; Major_Cat and Sub_Cat that are linked in a one to many relationship.
Ive created a form that has lots of combo boxes when im using queries to populate the combo boxes. I have it set up so when an option is selected from a combo box the text relative to it comes up in a text box at the side of it. Ive done this by adding this code in the after update event.
"Private Sub Precautions_AfterUpdate()
Me.[description] = Me.[Precautions].Column(1)"
What I want is to be able to get it so when the user has selected one option it opens another combo box with the same options so when they select the next option it populates the same text box as before with another description.
I want this to happen until the user moves on to the next section and so on.
I know this is probably not explained as well as it could be.
If this cant be done another option would be to use a list box so the user can select as many options from the box and the relative text will be populated for all of the items selected in another list box at the side of it.
I have tried doing this but I can only get it to populate the box at the side with one of the relative peices of text rather than the text for all options selected.
I know this is long winded I just wanted to try and give as much info as possible. if any one knows what im going on about please reply
Thanks
Brent
Ive created a database that Is going to create data sheets. I have two main tables ; Major_Cat and Sub_Cat that are linked in a one to many relationship.
Ive created a form that has lots of combo boxes when im using queries to populate the combo boxes. I have it set up so when an option is selected from a combo box the text relative to it comes up in a text box at the side of it. Ive done this by adding this code in the after update event.
"Private Sub Precautions_AfterUpdate()
Me.[description] = Me.[Precautions].Column(1)"
What I want is to be able to get it so when the user has selected one option it opens another combo box with the same options so when they select the next option it populates the same text box as before with another description.
I want this to happen until the user moves on to the next section and so on.
I know this is probably not explained as well as it could be.
If this cant be done another option would be to use a list box so the user can select as many options from the box and the relative text will be populated for all of the items selected in another list box at the side of it.
I have tried doing this but I can only get it to populate the box at the side with one of the relative peices of text rather than the text for all options selected.
I know this is long winded I just wanted to try and give as much info as possible. if any one knows what im going on about please reply
Thanks
Brent