businesshippieRH
Registered User.
- Local time
 - Yesterday, 20:04
 
- Joined
 - Aug 8, 2014
 
- Messages
 - 60
 
I have a SQL statement that worked just fine until I tried to add an extra field to my append query. I can't figure out what I'm missing, but I continue to get a Error 3346: The number of query values and destination fields are not the same. I'm sure somebody with better eyes can find the missing syntax.
	
	
	
		
RecName and NewRecNumber refer to strings created a few lines up. They work fine and have been debugged. Thanks in advance!
 
		Code:
	
	
	DoCmd.RunSQL "INSERT INTO tbl_Records ( RecordDistinction, RecordDateMONTH, RecordDateYEAR, Revision, RecordNumber, RecordName )" & _
"SELECT [Forms]![frm_NEWDateDist]![cmb_RecordDist] AS Expr1, [Forms]![frm_NEWDateDist]![txt_NewMo] AS Expr2, [Forms]![frm_NEWDateDist]![txt_NewYr] AS Expr3, 1 AS Expr4, " & NewRecNumber & " AS Expr5, " & RecName & " AS Expr6;"
	RecName and NewRecNumber refer to strings created a few lines up. They work fine and have been debugged. Thanks in advance!