![]() |
| ||
| SQL UPDATE Error Hi I have the following code which generates an error 'Data Type mismatch in criteria expression' The purpose of the code is to write a value to a database at a specific row.
|
| ||
| Re: SQL UPDATE Error It looks like you never declared the datatype of loSQL. |
| ||
| Re: SQL UPDATE Error Quote:
I got it to work the problem was the single quote around the variable I which is an Integer and not a String My original SQL statement was Dim loSQL = "UPDATE tblSession SET TTout = '" & _ This should have been Dim loSQL = "UPDATE tblSession SET TTout = '" & _ ViRi |
| ||
| Re: SQL UPDATE Error thanx for self learning, that really helps a lot. |
| All times are GMT -4. The time now is 4:10 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC