Re: Use entire table as a record in Access?
- From: "Jaybird" <Jaybird@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 1 Mar 2006 05:00:27 -0800
Silly me! Of course, using the Make Table Query is going to produce similar
results... It's still referring to the original table for those dates. I
guess I'm going to have to refresh the criteria for the temp table with the
new dates and append that. Currently, I'm thinking of creating a form with a
calendar add in to select the new dates and using that. I'll let you know
how it turns out!
Jaybird
"Jaybird" wrote:
Muy facil, Tina! Gracias! However, as you'd expect, the update query wants.
to update all of the records in the table, not just the ones from the latest
week. I'm thinking of several solutions. Tell me which sounds more
promising...
1) Set the critera of the append query to soemthing that will limit the
records it updates... Can't think of one that will work right now.
2) Instead of appending the same table, how about updating to a temp table,
and appending to the original table each time the action is run. That way,
only the records from the previous week are modified and added to the
original table.
3) Suggestions I haven't thought of?
Thanks again...
Jaybird
"tina" wrote:
just create an Append query to append all the necessary records to
tblEmpHours. then run the query, from a macro or VBA. then requery the form
that's bound to tblEmpHours. you can set the OrderBy property of the form in
VBA. something along the lines of:
Dim db As DAO.Database, strSQL As String
Set db = CurrentDb
strSQL = db.QueryDefs("AppendQueryName").SQL
db.Execute strSQL, dbFailOnError
Me.Requery
Me.OrderBy = "SomeField, SomeOtherField"
Me.OrderByOn = True
hth
"Jaybird" <Jaybird@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9CFEF83D-5162-4204-A92E-F4A62BABEAC8@xxxxxxxxxxxxxxxx
Aha,efficiently in
I didn't read your post carefully enough. Sorry. I'll concentrate my
efforts on looking for an example of just such and appending code. I
appreciate the response. Of course, my VBA skills stink. Maybe someone
could walk me through it? Hint, hint...
Jaybird
"tina" wrote:
you need minimum two tables:
tblEmployees
EmpID (primary key)
FirstName
LastName
<any other fields that describe an employee.>
tblEmpHours
HourID (pk)
EmpID (foreign key from tblEmployees)
WorkDate
WorkHours
the table design is standard and simple. to do the data entry
setforms, you can get about as creative as you need to be. exactly how you
theup the data entry form depends on how the user needs to be able to enter
fordata. for instance, will the user enter all the hours for all employees
throughMonday 2/20/2006, then for Tuesday, etc? or will the user enter all the
hours for one employee for each day of the week, Monday 2/20/2006
andFriday 2/24/2006, then for the next employee, etc?
in either case above, you can add code to the data entry form to append
records for all employees for each date of the work-week at one time,
Excelthen sort the records according to how the user needs to enter the data,
thus presenting the user with a group of "already existing" records that
s/he can quickly move through in order, entering just the hours - the
employee and date information is already present in the record.
hth
"Jaybird" <Jaybird@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:BE378A2C-A089-4FEE-B133-F3BF127F66AC@xxxxxxxxxxxxxxxx
I am attempting to get Access to behave in a way that is similar to
workedin
some respects... Currently, payroll is using excel to post weeklyemployee
hours. The current list of employees is posted with the hours they
arefor each day during the week on one work***, the next week's hours
toposted on the next work*** and so on. To get an Access application
designbe
adopted by payroll, I need it to behave in the same way. I want to
toa
form which pulls up the current list of emploees with the hours theyworked
for that week as one record, with the next week's hours as the nextrecord.
Currently, Access wants to treat each employee and their hours asindividual
records. You have to scroll down the list of employees one at a time
reportfind
the weekly hours you want to enter. Obviously, you can design a
beenthat
organizes the data by employee and the weekly hours after they have
once.entered, but I want a way to enter this information in a form all at
Does anyone know how to get Access to behave in this way?
- Follow-Ups:
- Re: Use entire table as a record in Access?
- From: Jaybird
- Re: Use entire table as a record in Access?
- References:
- Re: Use entire table as a record in Access?
- From: tina
- Re: Use entire table as a record in Access?
- From: Jaybird
- Re: Use entire table as a record in Access?
- Prev by Date: Re: Use entire table as a record in Access?
- Next by Date: Re: Use entire table as a record in Access?
- Previous by thread: Re: Use entire table as a record in Access?
- Next by thread: Re: Use entire table as a record in Access?
- Index(es):