J
Joe Cilinceon
Access 2000 with this simple append query to add a record to a letter sent
table.
strSQL = "INSERT INTO tblTenantLetters ( CustNo, PrintDate, LetterType ) " &
_
"VALUES ( " & Me.CustNo & ", #" & Date & "#, 3 ) ;"
I use almost the exact same syntax on a much larger append query without
problem. now I get not valid SQL
I have even tried to change it as below:
strSQL = "INSERT INTO tblTenantLetters ( CustNo, PrintDate, LetterType ) "
strSQL = strSQL & "VALUES ( "
strSQL = strSQL & Me.CustNo & ", #"
strSQL = strSQL & Date & "#, 3 ) ;"
table.
strSQL = "INSERT INTO tblTenantLetters ( CustNo, PrintDate, LetterType ) " &
_
"VALUES ( " & Me.CustNo & ", #" & Date & "#, 3 ) ;"
I use almost the exact same syntax on a much larger append query without
problem. now I get not valid SQL
I have even tried to change it as below:
strSQL = "INSERT INTO tblTenantLetters ( CustNo, PrintDate, LetterType ) "
strSQL = strSQL & "VALUES ( "
strSQL = strSQL & Me.CustNo & ", #"
strSQL = strSQL & Date & "#, 3 ) ;"