D
DS
I have the following SQL statement. The problem is that whatever I
enter into the TxtName field (Unbound) on Form5 a box pops up asking for
the parameter...at the top of the box is whatever I typed into TxtName.
Is this a Syntax problem?
Thanks
DS
Me.TxtTaxID = Nz(DMax("[TaxID]", "Tax"), 0) + 1
Dim TaxSQL As String
DoCmd.SetWarnings False
TaxSQL = "INSERT INTO Tax (TaxID,TaxName,TaxAmount,Active) " & _
"Values(" & Forms!Form5!TxtTaxID & "," & Forms!Form5!TxtName & "," &
Forms!Form5!TxtAmount & ","" & Forms!Form5![ChkActive] & "")"
DoCmd.RunSQL (TaxSQL)
DoCmd.SetWarnings True
enter into the TxtName field (Unbound) on Form5 a box pops up asking for
the parameter...at the top of the box is whatever I typed into TxtName.
Is this a Syntax problem?
Thanks
DS
Me.TxtTaxID = Nz(DMax("[TaxID]", "Tax"), 0) + 1
Dim TaxSQL As String
DoCmd.SetWarnings False
TaxSQL = "INSERT INTO Tax (TaxID,TaxName,TaxAmount,Active) " & _
"Values(" & Forms!Form5!TxtTaxID & "," & Forms!Form5!TxtName & "," &
Forms!Form5!TxtAmount & ","" & Forms!Form5![ChkActive] & "")"
DoCmd.RunSQL (TaxSQL)
DoCmd.SetWarnings True