D
DS
I need to be able to Insert the TxtMemo field if it is null, right now I
have it like this...
"'" & Forms!frmStoreCreditAdd!TxtMemo & "'," & _
Which I have a feeling it isn't creating a Null Record..
When I try this...
"" & Forms!frmStoreCreditAdd!TxtMemo & "," & _
I get an Error if it is null...so how do I insert this record if it is null?
Any help appreciated.
Thanks
DS
Me.TxtCreditID = Nz(DMax("[CreditID]", "tblStoreCredit"), 0) + 1
CurrentDb.Execute "INSERT Into
tblStoreCredit(CreditID,CreditCustomerID,CreditAmount,CreditReason,CreditDate,
CreditMemo,CreditIssuerID,CreditManagerID) " & _
"VALUES('" & Forms!frmStoreCreditAdd!TxtCreditID & "'," & _
"'" & Forms!frmStoreCreditAdd!TxtCustomerID & "'," & _
"'" & Forms!frmStoreCreditAdd!TxtCreditAmount & "'," & _
"'" & Forms!frmStoreCreditAdd!TxtCreditReason & "'," & _
"#" & Forms!frmStoreCreditAdd!TxtCreditDate & "#," & _
"'" & Forms!frmStoreCreditAdd!TxtMemo & "'," & _
"'" & Forms!frmStoreCreditAdd!TxtEmployee & "'," & _
"'" & Forms!frmStoreCreditAdd!TxtManager & "')"
have it like this...
"'" & Forms!frmStoreCreditAdd!TxtMemo & "'," & _
Which I have a feeling it isn't creating a Null Record..
When I try this...
"" & Forms!frmStoreCreditAdd!TxtMemo & "," & _
I get an Error if it is null...so how do I insert this record if it is null?
Any help appreciated.
Thanks
DS
Me.TxtCreditID = Nz(DMax("[CreditID]", "tblStoreCredit"), 0) + 1
CurrentDb.Execute "INSERT Into
tblStoreCredit(CreditID,CreditCustomerID,CreditAmount,CreditReason,CreditDate,
CreditMemo,CreditIssuerID,CreditManagerID) " & _
"VALUES('" & Forms!frmStoreCreditAdd!TxtCreditID & "'," & _
"'" & Forms!frmStoreCreditAdd!TxtCustomerID & "'," & _
"'" & Forms!frmStoreCreditAdd!TxtCreditAmount & "'," & _
"'" & Forms!frmStoreCreditAdd!TxtCreditReason & "'," & _
"#" & Forms!frmStoreCreditAdd!TxtCreditDate & "#," & _
"'" & Forms!frmStoreCreditAdd!TxtMemo & "'," & _
"'" & Forms!frmStoreCreditAdd!TxtEmployee & "'," & _
"'" & Forms!frmStoreCreditAdd!TxtManager & "')"