Hi all
I am having an issue with this statement.
I have Dim'd CalcSQL as String and am getting a Compile Error message saying that the Method or Data Member not found on the 'Me.txtStateElec' piece of code.
I have checked that the spelling matches and even copied all code and controls into another form. It is now starting to really annoy me
ANy help is much appeciated.
I am having an issue with this statement.
I have Dim'd CalcSQL as String and am getting a Compile Error message saying that the Method or Data Member not found on the 'Me.txtStateElec' piece of code.
I have checked that the spelling matches and even copied all code and controls into another form. It is now starting to really annoy me

Code:
CalcSQL = "SELECT tblStdEFElectricity.Scope2EmissionFactor1, tblStdEFElectricity.EmissionFactorRegion, tblStdEFElectricity.FinancialYear " & _
"FROM tblStdEFElectricity " & _
"WHERE tblStdEFElectricity.EmissionFactorRegion='" & Me.txtStateElec & "' AND tblStdEFElectricity.FinancialYear='" & Me.txtFYElec & "';"