Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Form check box

I have a check box that's part of a form and have the information copy to a
data base:

ws.Cells(iRow, 2).Value = Me.txtMemberName.Value
ws.Cells(iRow, 5).Value = Me.TxtDeposits.Value
ws.Cells(iRow, 6).Value = Me.TxtLending.Value
ws.Cells(iRow, 7).Value = Me.CBBroker.Value <---this line
ws.Cells(iRow, 8).Value = Me.Txtmutualfunds.Value
ws.Cells(iRow, 10).Value = Me.txtComments.Value

The value that appears in the data base is "true" How do I simply change
this to say "Yes"

Thanks for your help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Form check box

if me.cbbroker.value = true then
ws.cells(iRow, 7).Value = "Yes"
else
ws.cells(iRow, 7).Value = "No" 'or "" ????
End if

JeffK wrote:

I have a check box that's part of a form and have the information copy to a
data base:

ws.Cells(iRow, 2).Value = Me.txtMemberName.Value
ws.Cells(iRow, 5).Value = Me.TxtDeposits.Value
ws.Cells(iRow, 6).Value = Me.TxtLending.Value
ws.Cells(iRow, 7).Value = Me.CBBroker.Value <---this line
ws.Cells(iRow, 8).Value = Me.Txtmutualfunds.Value
ws.Cells(iRow, 10).Value = Me.txtComments.Value

The value that appears in the data base is "true" How do I simply change
this to say "Yes"

Thanks for your help


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
make a check form, and then have info go to a check register richie g Excel Worksheet Functions 0 May 5th 10 12:10 AM
VBA for form check boxes dicko1 Excel Worksheet Functions 4 June 5th 09 04:02 PM
Check Box and form Sharlene Administrative Assistant Excel Discussion (Misc queries) 0 June 3rd 09 06:47 PM
user form check box vba emmy128 Excel Programming 2 January 24th 07 11:26 PM
form check box sako 338 Excel Worksheet Functions 1 January 16th 07 12:33 PM


All times are GMT +1. The time now is 10:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"