in my current procedure, I have string variable 'ConfirmRate',
in my sql section shown below, I need to replace the VATrate (select section) with ConfirmRate, I don't know how to do that.
your help is appreciated.
in my sql section shown below, I need to replace the VATrate (select section) with ConfirmRate, I don't know how to do that.
your help is appreciated.
Code:
If Me.[ExtraDetailssub].Form.RecordsetClone.RecordCount > 0 Then strSql = "INSERT INTO [Extras] ( PH_DetailsID, ExtraAmt, ItemDetails, VATyesno, VATrate ) " & _ "SELECT " & lngID & " As NewID, ExtraAmt, ItemDetails, VATyesno, [B]VATrate[/B] " & _ "FROM [Extras] WHERE PH_DetailsID = " & Me.PH_DetailsId & ";" DBEngine(0)(0).Execute strSql, dbFailOnError
Comment