CodeConnect.Net Beta


   Explore    Entry   Register  Login  
windowsxp-general
access
windows-vista-mail
windows-vista-general
windowsupdate
windowsmedia-player
access-forms
windows-live-mail-desktop
windowsxp-help_and_support
access-queries
access-modulesdaovba
access-formscoding
windows-server-sbs
windows-server-general
access-reports
windows-vista-music_pictures_video
windowsce-platbuilder
windows-live-messenger
windows-terminal_services
windows-powershell
windows-server-active_directory
access-gettingstarted
windows-mediacenter
windowsxp-hardware
windowsxp-network_web
windows-64bit-general
windows-live-sync
windows-vista-hardware_devices
windows-inetexplorer-ie6_outlookexpress
windows-group_policy
windows-server-networking
windows-vista-installation_setup
windows-vista-networking_sharing
windowsxp-basics
access-tablesdbdesign
windowsxp-perform_maintain
windows-vista-performance_maintenance
windows-networking-wireless
windows-vista-file_management
windows-inetexplorer-ie6-browser
windows-server-dns
windows-server-update_services
windows-vista-security
windows-vista-administration_accounts_passwords
windows-vista-games
windows-file_system
access-activexcontrol
windows-live-foldershare
windows-live-photogallery
access-developers-toolkitode
access-conversion




Can Reply:  Yes Members Can Edit: No Online: Yes
Zone: > Microsoft News > microsoft.public.access.modulesdaovba Tags:
Item Type: Date Entered: 10/27/2009 1:15:01 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 68 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
=?Utf-8?B?QW5u?
NewsGroup User
Tag Property10/27/2009 1:15:01 PM
Reply

0

Hi,

First let me say I'm not a programmer so I appreciate any help that is
offered.

Someone has helped me with the code below. Each tag property on each
control has either a 10 for Low Risk, 100 for Medium Risk and 1000 for High
Risk. Each control has an AfterUpdate event that will call the sub Risk.
This then will populate the txtRisk control which will put the appropriate
checkmark in an option group checkbox. The problem is that they are all high
because it's added all of them not just those that are checked. How do I get
it to only add the value in the tag property to the RiskValue if the checkbox
is checked? Thank you again for any help I receive.

Public Sub Risk()

Dim RiskValue As Integer

RiskValue = RiskValue + CInt([Forms]![Main]![SSN].Tag)
RiskValue = RiskValue + CInt([Forms]![Main]![Name].Tag)
RiskValue = RiskValue + CInt([Forms]![Main]![DOB].Tag)
RiskValue = RiskValue + CInt([Forms]![Main]![Address].Tag)
RiskValue = RiskValue + CInt([Forms]![Main]![Phone].Tag)
RiskValue = RiskValue + CInt([Forms]![Main]![Email].Tag)
RiskValue = RiskValue + CInt([Forms]![Main]![Med Record].Tag)
RiskValue = RiskValue + CInt([Forms]![Main]![HP Beneficiary].Tag)
RiskValue = RiskValue + CInt([Forms]![Main]![Account].Tag)
RiskValue = RiskValue + CInt([Forms]![Main]![Certificate].Tag)
RiskValue = RiskValue + CInt([Forms]![Main]![License].Tag)
RiskValue = RiskValue + CInt([Forms]![Main]![Full Face Photo].Tag)
RiskValue = RiskValue + CInt([Forms]![Main]![Vehicle].Tag)
RiskValue = RiskValue + CInt([Forms]![Main]![Web URL].Tag)
RiskValue = RiskValue + CInt([Forms]![Main]![Internet Address].Tag)
RiskValue = RiskValue + CInt([Forms]![Main]![Finger Print].Tag)
RiskValue = RiskValue + CInt([Forms]![Main]![Voice Print].Tag)
RiskValue = RiskValue + CInt([Forms]![Main]![Health Info].Tag)
RiskValue = RiskValue + CInt([Forms]![Main]![Other].Tag)

If RiskValue > 1000 And RiskValue < 8480 Then
txtRisk = 1
End If

If RiskValue > 100 And RiskValue < 480 Then
txtRisk = 2
End If

If RiskValue > 0 And RiskValue < 80 Then
txtRisk = 3
End If

End Sub

"Linq Adams via
NewsGroup User
Re: Tag Property10/27/2009 1:26:35 PM
Reply

0

This duplicate has received posts at

http://www.accessmonster.com/Uwe/Forum.aspx/access-modulesdaovba/35709/Tag-Property


Ann, please do not double post questions. It is considered very poor
netiquette and can cause the people volunteering to help you to waste their
time, giving answers that have already been supplied in the duplicate post.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-modules/200910/1

2 Items, 1 Pages 1 |< << Go >> >|







Similar:

'error loading property page' in vs 2003

vs2003: set up app

ntier layers dll question

arabisation in asp.net application

security question about visual source safe whidbey or 6d

urgent help required to run my asp.net program in dotnet since waiting from long time & trying a lot it to solve it then too it is getting error.

maintain scrolling in vs 2003 (v 1.1)

debug remote machine

visual studio.net exits during compile

stored procedure debug

program no longer going into debug

vs 2003 installation on vista

designer toolbar

need a lot of help **** open visual studio project*****

vs studio web forms

mcafee blocks aspnet_wp.exe from querying mysql database

unable to step into code to debug it

creating msi in vs.net

using microsoft .net framework 1.0 and 1.1??

slolution file (.sln) missing how to open project in visual studio.net

i have vs2003 and vs2005 asp.net works in vb2005 but not in vb2003 why?

visual studio.net 2003 debugging stops when using firefox

will i mess up anything if i rename my project and solution

adding items to toolbox in vs .net 2003

how do you hide hide formatting marks in vs 2003?

this is a brain twister!! any help appreciated!!

trouble with compiling and using a basic custom .dll

visual studio 07

vs.net sluggishness on network

error:the solution appears to be under source control...

need info regarding ideal setup for microsoft visual studio .net 2003

vs studio pro - should i buy now?

wats the best way in paging in asp.net 1.1. using visual studio 2003

stored procedure

arrrgggghhhh! visual studio will no longer load my project!

won't load simplate web page!!!

will asp2.0 work in vs2003?

clearing an alert box

strange errors (help)

errors creating custom enterprise template

newbie: how to add my own comment for my methods to intellisense?

how to build dll files into an application

copy project woes...

urgent problem

progblem

debugging has quit working

assembly problem

how to merge columns in html table.

how to avoid auto-insertion of <font> tag

help is not installed for visual studio

   
  Privacy | Contact Us
All Times Are GMT