Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculated fields in bound DBGrid
Message
From
01/04/1998 13:15:05
 
 
To
01/04/1998 12:07:43
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Miscellaneous
Thread ID:
00088726
Message ID:
00088742
Views:
22
Hi P-E,

First, built an Access total query type with an average field. Pull down all needed fields to be displayed on the DBGrid.

Second, associate the query to the Datasource and then associate the DBGrid to the datasource. There you will have bounded fields of the DBGrid to the table, except for the last field which is the average field.

Last, the DBGrid has a module property called "DBGrid1_AfterUpdate"

Private Sub DBGrid1_AfterUpdate()
me!DSAverage.refresh
End Sub

or you can validate whenever the current cell has been modified

if Me!DBGrid1.CurrentCellModified then
me!DSAverage.refresh
end if


HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform