Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / January 2008

Tip: Looking for answers? Try searching our database.

update query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hawaiitowman@gmail.com - 11 Jan 2008 07:21 GMT
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
to me which is hours worked. I made a query with the criteria as null
hours. When I change the query to update query the date and employee
id fields ( which is part of the original query field) disappeared. It
only left the worked hours field which I can't update because the date
and employee id field disappears so I don't know who's hours or what
date I am updating.
Jeanette Cunningham - 11 Jan 2008 07:38 GMT
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.
John W. Vinson - 11 Jan 2008 23:37 GMT
>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]
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.