We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Private Sub Form_Load() '////// For recalculating quantities as a percent of Total Shipped. /////// Dim rs As Object, varPctShip As Single, varCurrVal As Single varPctShip = 0 varCurrVal = 0 Set rs = CurrentDb.OpenRecordset("tbl_temp_freight_sort_cost") With rs rs.MoveFirst '////// Cycle through columns, regardless of name and number. ////////// ' 1st Column is referenced as column zero. For i = 2 To rs.Fields.Count - 1 varCurrVal = rs.Fields(i).Value If varCurrVal <> 0 Then varPctShip = varCurrVal / (rs.Fields(1).Value) .Edit !rs.Fields(i) = varPctShip .Update End If Next rs.MoveNext End With End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|MS Access Query Criteria How To Handle Many ORs||4||53|
|Why does the filterbox look different in different fields?||5||35|
|Is it possible to get data from a web-based interface and bring it over to an Access database?||4||28|
|Importing specific cell from Excel to MS Access||17||40|
Join the community of 500,000 technology professionals and ask your questions.