The query does have "m" ... it's after it's interpreted that it goes to [m]... fixed the second , ... thanks
So the query is: SELECT DateAdd("m"; 6; Nz([DateOfCal]; Date())) As NextCalibration FROM TblCalibItems;
Response: [Microsoft][ODBC Microsoft Access Driver] Syntax error in query expression 'DateAdd([m]; 6; Nz([DateOfCal]; Date()))'.
I am not running MS Access locally. But here is the SQL version of the table definition if that helps? I can get more info if needed...
CREATE TABLE `TblCalibItems` (
`CalibItemID` INTEGER NOT NULL AUTO_INCREMENT,
`EquiptID` INTEGER,
`SerialNo` VARCHAR(40),
`ConsignID` INTEGER NOT NULL,
`Status` INTEGER DEFAULT 0,
`CalMethod` LONGTEXT,
`Procedure` VARCHAR(50),
`Comment` LONGTEXT,
`CommentInt` LONGTEXT,
`DateOfCal` DATETIME,
`MonthsCal` TINYINT(3) UNSIGNED,
`Repair` TINYINT(1),
`JobDone` TINYINT(1),
`Result` INTEGER,
`LocationID` INTEGER,
`EmpID2` INTEGER,
`EmpID` INTEGER,
`TestCondID` INTEGER,
`CalBasisID` INTEGER,
`CertFomat` INTEGER,
`CertificateNo` VARCHAR(50),
`RecaNote` TINYINT(1) DEFAULT 0,
`TestTol` VARCHAR(50),
`Supply` INTEGER NOT NULL DEFAULT 0,
`ProcID` INTEGER,
`OutOfUse` TINYINT(1),
`CertProt` TINYINT(1),
INDEX (`CalBasisID`),
UNIQUE (`CertificateNo`),
INDEX (`ConsignID`),
INDEX (`EmpID`),
INDEX (`EquiptID`),
INDEX (`LocationID`),
PRIMARY KEY (`CalibItemID`),
INDEX (`ProcID`)
) ENGINE=myisam DEFAULT CHARSET=utf8;