Question : Type Conversion Error on an Access Query

I have this query. When I run it I get type conversion error

UPDATE modhist SET modhist.LastContactDate = DMax("DateTime1","ComCon","FundName'= " & modhist.FundName & "'");

"Microsoft Office Access didnt update 2 field(s) due to a type conversion failure...."


I checked the two tables and the date fields (modhist.lastcontactdate and comcon.Datetime1) are both date/time


What might be the problem?

Answer : Type Conversion Error on an Access Query

It looks like you have an apostrophe in the wrong place, just before your equals sign.

Change "FundName'=" to "FundName='"
Random Solutions  
 
programming4us programming4us