Type conversion failure

cornishteeth

Board Regular
Joined
Dec 6, 2002
Messages
117
I have a table labeled tblStudent with 8 fields. I created an update query that when selected deletes all the data (Dates for the week) in one of the fields by putting "" in the update to criteria. Most of the time it works, but some of the time, I get a type conversion failure on all records and an error message that reads "Microsoft Access cannot update all the records in the update query." Am I using the update query when I should be using something else?

Thanks,

Frank
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Update query is OK.
Are you mixing Text (="") and dates ? ie. Is it a Date field ?
 
Upvote 0
The field I am using the update query to delete is in fact a Date field. It does work, but I get that error message. Is the "" only to be used with text? If not, what should I use to clear dates. The reason I am asking is that I am attempting to clear not one, but two field simultaneously. When I try to clear two fields, it does not work. The first is a DATE field, the second is a TEXT field.

Frank
 
Upvote 0
You can set the fields to "Null" (without the speachmarks) - this will work for all field-types (as long as you haven't set the field so it doesn't accept them).

Martin
 
Upvote 0

Forum statistics

Threads
1,203,491
Messages
6,055,727
Members
444,814
Latest member
AutomateDifficulty

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top