I have a question for any VB expert out there. I have the following module written for Access 97, however, the Run button will not activate. What needs to be done to get the Run button activated? Is the program language correct? (Added information - the database is named Structural 2005. The fields Amount, Units, and Formulation are used to calculate the field Active.)
Option Compare Database
Option Explicit
docmd.set warnings false
DoCmd.RunSQL "update Structural 2005 set Active = Amount * 8.35 * Formulation * 0.01 where Units= 'GAL'"
DoCmd.RunSQL "update Structural 2005 set Active = Amount/16 * Formulation * 0.01 where Units= 'OZ'"
DoCmd.RunSQL "update Structural 2005 set Active = Amount * Formulation * 0.01 where Units= 'LBS'"
docmd.set warnings true
Thanks for any assistance.
Option Compare Database
Option Explicit
docmd.set warnings false
DoCmd.RunSQL "update Structural 2005 set Active = Amount * 8.35 * Formulation * 0.01 where Units= 'GAL'"
DoCmd.RunSQL "update Structural 2005 set Active = Amount/16 * Formulation * 0.01 where Units= 'OZ'"
DoCmd.RunSQL "update Structural 2005 set Active = Amount * Formulation * 0.01 where Units= 'LBS'"
docmd.set warnings true
Thanks for any assistance.