Welcome to Windows Help!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Creating Multiple Record

 
   Windows Help (Home) -> Microsoft Access RSS
Next:  Convert odd number to date  
Author Message
channell

External


Since: Dec 8, 2008
Posts: 10



(Msg. 1) Posted: Mon Jan 05, 2009 11:20 pm
Post subject: Creating Multiple Record
Archived from groups: microsoft>public>access (more info?)

I was curious to find out how to create multiple records for an employee. I
want to be able to select an employee and schedule vacations and multiple
days off from work.

Here is what my tables look like:

tblEmployee
Employee ID (PK)
NAME

tblDailyInfo
DailyInfo ID (PK)
WorkDate
TimeOffReason
....and so forth

Here is what I envision:

I select an employee from a combo box. Below that is another combo box with
a list of multiple reasons why someone would need time off. I select a
reason. I enter a start date and an end date for vacations. I need an "OK"
button at the bottom. Once I click it, it would created a record for every
day that person is on vacation or absent.

Thanks for your help in advance! if you need to email me, please do so at
. Thanks!

 >> Stay informed about: Creating Multiple Record 
Back to top
Login to vote
Wayne-I-M

External


Since: Dec 23, 2008
Posts: 10



(Msg. 2) Posted: Tue Jan 06, 2009 1:25 am
Post subject: RE: Creating Multiple Record
Archived from groups: per prev. post (more info?)

Hi

Add the Employee ID to tblDailyInfo (number format)
Link the tables in the relationship window.

 >> Stay informed about: Creating Multiple Record 
Back to top
Login to vote
channell

External


Since: Dec 8, 2008
Posts: 10



(Msg. 3) Posted: Tue Jan 06, 2009 4:32 am
Post subject: RE: Creating Multiple Record
Archived from groups: per prev. post (more info?)

I am sorry... I do have EmployeeID in tblDailyInfo. I am not sure where to
go from there. Thanks!

"Wayne-I-M" wrote:

> Hi
>
> Add the Employee ID to tblDailyInfo (number format)
> Link the tables in the relationship window.
>
> --
> Wayne
> Trentino, Italia.
>
>
>
> "channell" wrote:
>
> > I was curious to find out how to create multiple records for an employee. I
> > want to be able to select an employee and schedule vacations and multiple
> > days off from work.
> >
> > Here is what my tables look like:
> >
> > tblEmployee
> > Employee ID (PK)
> > NAME
> >
> > tblDailyInfo
> > DailyInfo ID (PK)
> > WorkDate
> > TimeOffReason
> > ...and so forth
> >
> > Here is what I envision:
> >
> > I select an employee from a combo box. Below that is another combo box with
> > a list of multiple reasons why someone would need time off. I select a
> > reason. I enter a start date and an end date for vacations. I need an "OK"
> > button at the bottom. Once I click it, it would created a record for every
> > day that person is on vacation or absent.
> >
> > Thanks for your help in advance! if you need to email me, please do so at
> > . Thanks!
 >> Stay informed about: Creating Multiple Record 
Back to top
Login to vote
Wayne-I-M

External


Since: Dec 23, 2008
Posts: 10



(Msg. 4) Posted: Tue Jan 06, 2009 8:24 am
Post subject: RE: Creating Multiple Record
Archived from groups: per prev. post (more info?)

Hi

Open the relationship window and drag the field from tblEmployee over the
the same field in tblDailyInfo and create the relationship. I would suggest
the you use integrety (so you can't have days off with no-one taking them ??)

Next create a query with both tables in the design grid (the relationship
will show here as well).
Drag the fields into the query that you want from the table then create your
form.

Next create a new
Next - open the form in design view and (use the wizard toolbox) add a a
combo to give you the items you want (base it on a query that the wizard will
create for you).

If you want to casscade the combo (so that when you select an employee only
they will show in the next) ensure you refer to the 1st combo in the query
the 2nd is based on (use the build option in the criteria row).

Hope this makes sence.
 >> Stay informed about: Creating Multiple Record 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Creating a Prompt - I have a command button that runs an end of month process using two queries, and before these queries run, I would like to prompt the user with something like "Are you sure?" and then give them the option of clicking Yes or No. This way the...

record locks - I need to check to see if a user has placed a editrecord lock on a record. Is thier a good way to test for a lock. If I know that thier is a lock set then I can do something. Right now I have the form set to no locks. Thanks OD

Change of Record - What event would describe moving from one record to another in a form? I've incorporated a tab control into my form and I'd like to deisgn it so that when a user is on any tab other than the 1st one, if the user moves to another record (e.g., using th...

Creating relationships on the backend part - Is there any difference between creating relationships on the tables in the back-end part of the database and between creating them on the local part (front-end)? Which one is better? and why both don't automatically take the same relationships plan?

how to create new record automatically - Hi, I have a form a form to show the customer information and I button to create new order for him. The Order form has the following fields: OrderID>>>autonumber cutomerID employeeID …. Also, there is a subform that is bounded on the Order De...
   Windows Help (Home) -> Microsoft Access All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]