Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS Access 2007 Data Conversion Failure in Update Query

Status
Not open for further replies.

MindGrove

IS-IT--Management
Jul 1, 2009
5
GB
I'm new to MS access and completely flummoxed. I've been trying to update records in a table using the following statement:

UPDATE [Specific Risk] SET [Specific Risk].[Inherent VAR]=DLookUp("[Likelihood VAR]","Likelihood","[Likelihood ID]="& [Inherent likelihood]);

I can get the equivalent Dlookup to work on a form or in a report but in this update all I get is "You are about to update 31 rows" - which is correct. This is then followed by "MS access didn't update 31 rows due to a type conversion failure". But the data types for all of the fields are type number so I can't follow the logic. Can anyone throw light on this please?

regards,

Henry
 
What about this ?
Code:
UPDATE [Specific Risk] INNER JOIN Likelihood ON [Specific Risk].[Inherent likelihood] = Likelihood.[Likelihood ID]
SET [Specific Risk].[Inherent VAR] = Likelihood.[Likelihood VAR]

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top