J
|
Jane 5/28/2009 |
Hi, str = "select sum(FieldName) from DetailTableName where FieldName=" & values("KeyField") Set rstmp = server.CreateObject("ADODB.Recordset") rstmp.open str,dbConnection 'update master table dbConnection.Execute "update MasterTableName set TotaField=" & rstmp(0) & " where MasterKey=" & values("KeyField") rstmp.close set rstmp=nothing |
B
|
Barse author 5/28/2009 |
Thanks for the reply. What should I be using for what you have in KeyField below? Should I be using Keyfield or am I using the key column name used to set up the relationship? Hi, you can calculate and update total value for each record in the master table in the After record added/updated events on the Eventstab for detail table. Here is a sample: |
J
|
Jane 5/29/2009 |
Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error. |
M
|
Matthew 7/19/2009 |
I am having the same issue and would like to do something very similar. Did you find a solution to this? Thanks |
J
|
Jane 7/20/2009 |
Matthew, |