Command Button Issues

SoxPats83

Registered User.
Local time
Today, 03:40
Joined
May 7, 2010
Messages
196
i have a form with many command buttons tied to list boxes. one of these list boxes allows the user to multi select email addresses and after pressing the corresponding command button places these email addresses into a different text box. another list box as multiple options in it where the user then selects another command button to place these selections into the subject text box. i then have a subform in place, that shares the same record source as the main form, along with locked text boxes in it that are "cloned" of unlocked text boxes on the main form. while in the main form the user must type values into the "cloned" text fields and after they have filled out every "cloned" field the user must click yet another command button that moves these typed values into the corresponding text boxes within the subform. problem is that when the user clicks on the command button after filling in the text boxes, it clears all of the previously inputed values in the "To:" "Cc:" and "Subject" fields. i don't see anythign in the codes that would clear the before mentioned fields. kinda confusing...
 
If your code does not concatenate existing with the new it would replace it. So you need something like

Me,subfrm.Form.textbox = Me,subfrm.Form.textbox & Me.MainformTextbox
 
You don't like to post your code, do you? I'm guessing, but likely you have:

SomeControl = AnotherControl

To add to the existing value you want:

SomeControl = SomeControl & ", " & AnotherControl
 
Gotta be carefull not to let it fall into enemy hands :D

Nah, i try not to share my codes unless it is a last resort as i have to do a lot of editing to it as i am working on databases for my employer. I appreciate the tips as always and will be sure to try the above coding. Thanks!
 
Nah, i try not to share my codes unless it is a last resort as i have to do a lot of editing to it as i am working on databases for my employer.
As do most of us...

Just remember, it is a little like calling a doctor and asking him to diagnose over the phone. He can't do much for you unless he SEES you. Same goes for your code.
 
As do most of us...

Just remember, it is a little like calling a doctor and asking him to diagnose over the phone. He can't do much for you unless he SEES you. Same goes for your code.

thanks for the tip. i will do my very best to provide as much useful information in my requests down the road.
 

Users who are viewing this thread

Back
Top Bottom