MySQL = "UPDATE MkFrmFunc_Table SET MkFrmFunc_Table.Percentage = '" & Me.Percentage_Text1 & "', MkFrmFunc_Table.Volume = " & (MSize * Me.Percentage_Text1) & ", MkFrmFunc_Table.Ingredient = '" & Ingredient_Combo1 & "', WHERE ((MkFrmFunc_Table.Region = '" & Me.Region_Combo.Column(1) & "') And (MkFrmFunc_Table.SubRegion = '" & Me.SubRegion_Combo.Column(0, i) & "') And (MkFrmFunc_Table.Segment = '" & Me.Segment_Combo.Column(1) & "') And (MkFrmFunc_Table.Sector= '" & Me.Sector_Combo.Column(1) & "') AND (MkFrmFunc_Table.Product= '" & Me.Product_Combo & "'))"
With the line of code above I am getting an error. When I step through I am every variable is filled in with the correct number or word. I believe the problem is specifically here:
MkFrmFunc_Table.Volume = " & (MSize * Me.Percentage_Text1) & "
I get the right total but it gives me the syntax error 3144. MSize is a Double variable that I declared in the subroutine and Me.Percentage_Text1 comes from a form and is type Double as well. How specifically do I need to punctuate that line to get the error off?
With the line of code above I am getting an error. When I step through I am every variable is filled in with the correct number or word. I believe the problem is specifically here:
MkFrmFunc_Table.Volume = " & (MSize * Me.Percentage_Text1) & "
I get the right total but it gives me the syntax error 3144. MSize is a Double variable that I declared in the subroutine and Me.Percentage_Text1 comes from a form and is type Double as well. How specifically do I need to punctuate that line to get the error off?