I cannot seem to get this to work no matter where I place it in the grid events. I am trying to make sure that those two columns added together don't exceed another column and if it does I want to show a msgbox.
==================
If TDBGrid1.Columns(2).CellText(Bookmark) + TDBGrid1.Columns(3).CellText(Bookmark) > TDBGrid1.Columns(1).CellText(Bookmark) Then
MsgBox "Previously Completed plus Completed cannot exceed Scheduled Value", vbOKOnly, "Quick Manage"
frmAddPayApp.TDBGrid1.SetFocus
End If
================
all the columns are currency. It is a grid with alot of rows and just need to insure no row has those 2 columns exceeding another column's amount in that row.
If anyone has any expertise in Components One Activex Grid 8 I hope they can help.
==================
If TDBGrid1.Columns(2).CellText(Bookmark) + TDBGrid1.Columns(3).CellText(Bookmark) > TDBGrid1.Columns(1).CellText(Bookmark) Then
MsgBox "Previously Completed plus Completed cannot exceed Scheduled Value", vbOKOnly, "Quick Manage"
frmAddPayApp.TDBGrid1.SetFocus
End If
================
all the columns are currency. It is a grid with alot of rows and just need to insure no row has those 2 columns exceeding another column's amount in that row.
If anyone has any expertise in Components One Activex Grid 8 I hope they can help.