If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Visual Basic > Need help with adding textbox, checkbox & Radiobox values together

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-03-09, 12:43
haljordan haljordan is offline
Registered User
 
Join Date: Jul 2009
Posts: 2
Need help with adding textbox, checkbox & Radiobox values together

Hi ,

i am new to vb and hopefully have a simple question. I have a form which has couple of Text boxes plus 2 Group boxes. In Group box 1 i have 5 Check boxes. In Group box 2 i have 4 Radio boxes. The form will be used for capturing user data and giving you a preview of all the user data in a separate Multiline Text box (ie Textbox 1 & 2 plus the selections from the Checkboxes and Radiobox).
I can work out transferring the 2 Textboxes to the 3rd one okay and i think i would be okay with the Checkboxes and Radio boxes if i could do each one separately but how would i gather all the information and display it line by line in my 3rd text box? Any help would be much appreciated.
Reply With Quote
  #2 (permalink)  
Old 07-04-09, 08:27
haljordan haljordan is offline
Registered User
 
Join Date: Jul 2009
Posts: 2
Hi All,

Okay ive managed to progress a little further with the solution. I can add the text boxes plus the value of the radiobuttons to a seperate multiline textbox. This leaves me with the last Group box which has 5 checkboxes in it. How do i add the name of the selected checkboxes to the multiline textbox? This is what i have so far :

If RadioButton1.Checked = True Then
txtDetails.Text = firstname & "" & lastname & vbCrLf & _
address & vbCrLf & email & vbCrLf & "Direct Debit"


End If

If RadioButton2.Checked = True Then

txtDetails.Text = firstname & "" & lastname & vbCrLf & _
address & vbCrLf & email & vbCrLf & "Credit Card"

End If

If RadioButton3.Checked = True Then
txtDetails.Text = firstname & "" & lastname & vbCrLf & _
address & vbCrLf & email & vbCrLf & "Cheque"
End If

If RadioButton4.Checked = True Then
txtDetails.Text = firstname & "" & lastname & vbCrLf & _
address & vbCrLf & email & vbCrLf & "Cash"

End If


Thanks to anyone who can assist!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On