Re: Error: Data type mismatch in criteria expression
From: Steven Burn (somewhere_at_in-time.invalid)
Date: 01/03/05
- Next message: Bob Barrows [MVP]: "Re: Error: Data type mismatch in criteria expression"
- Previous message: Mauricio Freitas [MVP]: "Re: asp <-> nntp scripts"
- In reply to: Jack: "Error: Data type mismatch in criteria expression"
- Next in thread: Jack: "Re: Error: Data type mismatch in criteria expression"
- Reply: Jack: "Re: Error: Data type mismatch in criteria expression"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 3 Jan 2005 23:07:07 -0000
If IsNull(TheValue) Then TheValue = 0
'// code to update the DB
-- Regards Steven Burn Ur I.T. Mate Group www.it-mate.co.uk Keeping it FREE! "Jack" <Jack@discussions.microsoft.com> wrote in message news:95AE6050-A5DE-416C-8AE6-101D9DA02622@microsoft.com... > Hi, > I have posted this problem before. Apprently, the suggestion took care of > the problem. However, still I am getting the above error message. > I am using a session variable to transfer a value from a form to a > confirmation.asp page. This value is a calculated field. For most cases this > session variable value should be zero. However, instead, it is giving null > value and this null value is messing up the update statement which is > supposed to update the table in the database. This session variable value > being null is trying to update a currency field which gives the above error. > The sql statement via response.write is as follows: > UPDATE tblGMISExpenditures_Quarter SET > tblGMISExpenditures_Quarter.CurrentOutlay= '$0.00' , > tblGMISExpenditures_Quarter.LocalShare= '$0.00' , > tblGMISExpenditures_Quarter.MBCCShare= '' , > tblGMISExpenditures_Quarter.UnpaidOblig= '$0.00' , > tblGMISExpenditures_Quarter.LocalShareUnpaidOblig= '$0.00' , > tblGMISExpenditures_Quarter.ProjectIncome= '$0.00' , > tblGMISExpenditures_Quarter.ForfeitureIncome= '$0.00' , > tblGMISExpenditures_Quarter.OtherExpense= '$0.00' , > tblGMISExpenditures_Quarter.ForfeitureExpense= '$0.00' , > tblGMISExpenditures_Quarter.InterestReceived= '$0.00' , > tblGMISExpenditures_Quarter.TotalPeriodOutlay= '' , > tblGMISExpenditures_Quarter.Remarks= ' ' , tblGMISExpenditures_Quarter.Name= > ' ' , tblGMISExpenditures_Quarter.Title= ' ' , > tblGMISExpenditures_Quarter.AreaCode= ' ' , > tblGMISExpenditures_Quarter.Phone1= ' ' , tblGMISExpenditures_Quarter.Phone2= > ' ' , tblGMISExpenditures_Quarter.Date= '1/3/2005' where > tblGMISExpenditures_Quarter.SubgrantIntID = 6032; > Any help or alternative to use a calculated field(not user input field) to > update a database is appreciated. Thanks. > >
- Next message: Bob Barrows [MVP]: "Re: Error: Data type mismatch in criteria expression"
- Previous message: Mauricio Freitas [MVP]: "Re: asp <-> nntp scripts"
- In reply to: Jack: "Error: Data type mismatch in criteria expression"
- Next in thread: Jack: "Re: Error: Data type mismatch in criteria expression"
- Reply: Jack: "Re: Error: Data type mismatch in criteria expression"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|