I have a routine below
Public Sub updateStagesTable(sName As String, percentageValue As Double) stageName = "'" & sName & "'" sSQL = "INSERT INTO StagesT ([Stage Name], [Stage Value In Percentage]) VALUES (" & stageName & "," & percentageValue & ");" DoCmd.SetWarnings False DoCmd.RunSQL sSQL End Sub
and I call it from another routine as shown below
economy = 3.53 updateStagesTable ("Economy", economy)
But I get this compilation error
Compile Error: expected: =
I do not understand what I am doing wrong here. Please help.
user1670773
source share