single record manipulation

Hsibbs

Board Regular
Joined
May 6, 2005
Messages
85
I have a table with over 2000 records, the user enters and updates on this table via a form. At some stage, when the record is fully paid or no longer current, I would like a button on the form to 'disable' this record, ie grey it out so the user know it is 'done'. they should also be ab;e to 'turn it back on', just on case..............

Any ideas on how to do this?????
 
Aha!!!!!

perfect!!

Thank you!


I've decided to change the back color of the detail part of the form to grey.

How do I do that in vb???
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Code:
Private Sub Detail_Click()
  If Me.Detail.BackColor = -2147483633 Then
    Me.Detail.BackColor = 12632256
  Else
    Me.Detail.BackColor = -2147483633
  End If
End Sub
This code will change the Detail background of a form from the default color (-2147483633) to gray (12632256), or from gray to the default color. Just click on the detail part of the form. (You can not click on any of the controls on the form, it must be background area you click on)
HTH,
 
Upvote 0

Forum statistics

Threads
1,215,955
Messages
6,127,926
Members
449,411
Latest member
AppellatePerson

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top