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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update date field to null in MS Access

Status
Not open for further replies.

hedidit

Technical User
Jul 21, 2005
142
GB
Hi all,

I've got a date field in an ms access database that needs setting back to null after a user has previously entered a date. I'm trying the SQL:

Code:
 "UPDATE Tab1 Set D8Complete=null WHERE ID=499"

But am getting the error:

Code:
Microsoft OLE DB Provider for ODBC Drivers error '80040e10' 

[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1. 

/risk_db/ResetComplete.asp, line 17

Can anyone help me out with this?

Cheers
 
You must have missplled one of the field names (or possibly the table name).

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Oh dear. How embarrasing!

Sorry for time wasting. The field is spelt D8Completed.

I am a numpty :(

 
Nope. You just learned a lesson.

Whenever you see "Too few parameters." the problem is a mispelled field name. There was a time when I got the same error and spent hours trying to figure out the cause.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top