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 > Applying code to only 1 record, not entire db.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-11, 10:13
BattyOwl BattyOwl is offline
Registered User
 
Join Date: Dec 2011
Posts: 11
Question Applying code to only 1 record, not entire db.

Hi, Newbie here.

I am trying to use code to make a row/record turn bold when a check box is checked. The code goes something like this:
Private Sub Resolved_Click()

If Resolved.Value = True Then
Date_Drawn.FontBold = True

Else
Date_Drawn.FontBold = False

End If

If Resolved.Value = True Then
Slip_No.FontBold = True

Else
Slip_No.FontBold = False

End If

If Resolved.Value = True Then
Last_Name.FontBold = True

Else
Last_Name.FontBold = False

End If

...(for several more)

It works wonderfully. The problem now, is that when the first checkbox is checked, the bold applies to all of the records in the form instead of just the one it was intended for. I would like to find a way to have the code apply only to the record that includes that particular checkbox.

Thanks!
Reply With Quote
  #2 (permalink)  
Old 12-09-11, 12:15
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,262
please don't double post
if you are not gettign a response from your original post, and think it may have been misposted or benefit from moving then bump the post and request it be moved
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 01-29-12, 03:05
oMADMANo oMADMANo is offline
Registered User
 
Join Date: Jan 2012
Posts: 16
Can anyone help with this question as I am also having same sort of problem.
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