Hi,
it's always a good idea to have a backup of your data. You could make a
backup on close each time you have added new data or edited the data.
While you are experimenting with update queries, it is always good practice
to make a copy of the main data table before you use an action query
(update, append, delete) on it.
Another idea which would help save you from this sort of grief, is to work
out exactly how to do these queries to update the data and put them in code
on a form and use the form to do all your data changes.
Jeanette Cunningham
>I tried to use update query to update data that I didn't have prior to
> inputting the rest. I get the data whenever my supervisor can give it
[quoted text clipped - 4 lines]
> and employee id field disappears so I don't know who's hours or what
> date I am updating.
>I tried to use update query to update data that I didn't have prior to
>inputting the rest. I get the data whenever my supervisor can give it
[quoted text clipped - 4 lines]
>and employee id field disappears so I don't know who's hours or what
>date I am updating.
Perhaps you could open the query in SQL view and post it here. It would also
help to indicate what fields there are in your table, and how you're
determining which record should be updated.
If the criterion is JUST that the hours are NULL, you'll be updating every
record in the table with null hours, no matter what the date and the employee
ID might be, unless you're somehow indicating which employee and date you
mean!
John W. Vinson [MVP]
hawaiitowman@gmail.com - 12 Jan 2008 18:36 GMT
On Jan 11, 1:37 pm, John W. Vinson
<jvinson@STOP_SPAM.WysardOfInfo.com> wrote:
> On Thu, 10 Jan 2008 23:21:37 -0800 (PST), "hawaiitow...@gmail.com"
>
[quoted text clipped - 18 lines]
>
> John W. Vinson [MVP]
Updating the table with null hours is what I need to update but
without knowing who's hours and the dates it makes it impossible to
update.
John W. Vinson - 12 Jan 2008 23:03 GMT
>Updating the table with null hours is what I need to update but
>without knowing who's hours and the dates it makes it impossible to
>update.
Well... exactly.
If you had the information on a stack of paper timecards with no name and no
dates on the timecards, how would you update it?
I guess I don't understand the question. How can Access (or any program)
update records when you have no idea which records you want to update!?
It sounds like I'm misinterpreting the situation; could you describe it again?
John W. Vinson [MVP]