I
iwasinnihon
I want to be able to decrement a number in a field on a table when I
click a button on a form. I tried the following code
sql = "UPDATE Software SET TotalLicensesCount = TotalLicensesCount - 1
WHERE SoftwareID = '" & Me!Software.Column(0) & "';"
CurrentDb.Execute sql, dbFailOnError
I get the following error.
Data type mismatch in criteria expression.
What am I doing wrong.
click a button on a form. I tried the following code
sql = "UPDATE Software SET TotalLicensesCount = TotalLicensesCount - 1
WHERE SoftwareID = '" & Me!Software.Column(0) & "';"
CurrentDb.Execute sql, dbFailOnError
I get the following error.
Data type mismatch in criteria expression.
What am I doing wrong.