Forum Discussion

Tony2021's avatar
Tony2021
Iron Contributor
Nov 17, 2022
Solved

Subform calling in StrSQL Insert Into

Hello Experts, I have an unbound form frmFXTracker. I have a subform on this form subfrmFXRollsChild I need to reference a field (IDRollsPK)in this subform but I am sure I have it wrong (bold) I ...
  • arnel_gp's avatar
    Nov 18, 2022
    If [txtIDRollsPK] is the textbox (bound to IDRollsPK) on your subform:

    strSQL = "INSERT INTO tblFXRollsChildHist (IDRollsPK, AmountRoll) VALUES (" & [subfrmFXRollsChild].[Form]![txtIDRollsPK] & "," & Me!AmountRoll & ")"

Resources