Click to See Complete Forum and Search --> : update a number in Access


weee
06-01-2004, 09:00 PM
When I'm updating a number it should be in '?

like that:
SQL = "UPDATE tstTBL SET numOfProducts='" & numOfProducts & "' WHERE id=" & companyId

Or without?

buntine
06-01-2004, 10:16 PM
If you have defined that field as a number in your Access table, then you should not use single quotes.

Strings, on the otherhand, need single quotes.

Dates and times use the # character.

Regards.

weee
06-01-2004, 10:17 PM
!