Hello. For the following VBA program, Access does not like my Dim statement. How do I assign the table (or recordset) I want converted to "rs?"
Thanks for any help.
Function DoTheConversion()
Dim table "Structural 2005" As rs
DoCmd.RunSQL "update rs set [Active] = [Amount]* 8.35 * [Formulation] * 0.01 where [Units] = 'GAL'"
DoCmd.RunSQL "update rs set [Active] = [Amount]/16 * [Formulation] * 0.01 where [Units] = 'OZ'"
DoCmd.RunSQL "update rs set [Active] = [Amount] * [Formulation] * 0.01 where [Units] = 'LBS'"
End Function
Thanks for any help.
Function DoTheConversion()
Dim table "Structural 2005" As rs
DoCmd.RunSQL "update rs set [Active] = [Amount]* 8.35 * [Formulation] * 0.01 where [Units] = 'GAL'"
DoCmd.RunSQL "update rs set [Active] = [Amount]/16 * [Formulation] * 0.01 where [Units] = 'OZ'"
DoCmd.RunSQL "update rs set [Active] = [Amount] * [Formulation] * 0.01 where [Units] = 'LBS'"
End Function