Hi.
can you advise me what can i do in situation that i have to update and
insert very dainty data.
Create a SELECT query with the same criteria as your UPDATE query, so that
you can see which records will be updated. Add a column (or columns) in the
SELECT query that will have the calculated values you need in the UPDATE
query, so that you can see what changes will be made. Then change the
SELECT query to an UPDATE query and execute it.
For example:
SELECT StartDate, Date()
FROM MyTable
WHERE (ISNULL(StartDate));
and then change it to:
UPDATE MyTable
SET StartDate = Date()
WHERE (ISNULL(StartDate));
The SELECT query already showed you which records have a NULL StartDate, and
it showed you which date will be inserted into those records, so you know
whether or not the UPDATE query needs more tweaking.
even i do alote of test, theory i can be in situation that i get "on
error".
Make backups before you do something that may make you wish you hadn't.
That way, you can always restore from backup and try again.
HTH.
Gunny
See
http://www.QBuilt.com for all your database needs.
See
http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
Blogs:
www.DataDevilDog.BlogSpot.com,
www.DatabaseTips.BlogSpot.com
http://www.Access.QBuilt.com/html/expert_contributors2.html for contact
info.