A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Variable Field Names?



 
 
Thread Tools Display Modes
  #1  
Old December 16th, 2008, 01:51 PM posted to microsoft.public.access.tablesdbdesign
DumbWithData
external usenet poster
 
Posts: 21
Default Variable Field Names?

I am trying to set up part of my database to track employee time. We have
been simply doing this on an Excel sheet. I want to be able to enter the
employees name and the amount of time that they worked on any particular work
item. Given that there are hundreds of work items, Creating a field for each
seems to be the wrong way to go. Could someone please help?
  #2  
Old December 16th, 2008, 02:12 PM posted to microsoft.public.access.tablesdbdesign
Allen Browne
external usenet poster
 
Posts: 11,706
Default Variable Field Names?

You need:
a) A table of employees, with an EmployeeID primary key.

b) A table of work items, with a WorkItemID primary key.

c) A 3rd table with these fields:
- WorkID AutoNumber
- EmployeeID Number who
- WorkItemID Number did what
- StartDateTime Date/Time when employee started on workitem
- Minutes Number how long (duration in minutes)

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"DumbWithData" wrote in message
...
I am trying to set up part of my database to track employee time. We have
been simply doing this on an Excel sheet. I want to be able to enter the
employees name and the amount of time that they worked on any particular
work
item. Given that there are hundreds of work items, Creating a field for
each
seems to be the wrong way to go. Could someone please help?


  #3  
Old December 16th, 2008, 02:20 PM posted to microsoft.public.access.tablesdbdesign
DumbWithData
external usenet poster
 
Posts: 21
Default Variable Field Names?

Firstly, thank you Allen. I am wondering how I would set this up in a form
that had the same look/feel of an Excel sheet. I imagine that this form
would be linked to the third table...?



"Allen Browne" wrote:

You need:
a) A table of employees, with an EmployeeID primary key.

b) A table of work items, with a WorkItemID primary key.

c) A 3rd table with these fields:
- WorkID AutoNumber
- EmployeeID Number who
- WorkItemID Number did what
- StartDateTime Date/Time when employee started on workitem
- Minutes Number how long (duration in minutes)

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"DumbWithData" wrote in message
...
I am trying to set up part of my database to track employee time. We have
been simply doing this on an Excel sheet. I want to be able to enter the
employees name and the amount of time that they worked on any particular
work
item. Given that there are hundreds of work items, Creating a field for
each
seems to be the wrong way to go. Could someone please help?



  #4  
Old December 16th, 2008, 02:39 PM posted to microsoft.public.access.tablesdbdesign
Allen Browne
external usenet poster
 
Posts: 11,706
Default Variable Field Names?

Interface it as a form with a subform.

For example, you might create a form with a record for each work item, and a
subform (in continuous view) bound to the 3rd table. So, you find the
relevant work item, and then add another row each time someone works on it.
You can use a combo box in the subform for selecting the employee.

Alternatively, you could use a main form bound to the employee, and a
subform bound to the 3rd table. You find the employee's record, and then add
another row to the subform each time they work on a job (with a combo for
selecting which job it is.)

If you want to print something that looked like your Excel spreadsheet, use
a crosstab query.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"DumbWithData" wrote in message
...
Firstly, thank you Allen. I am wondering how I would set this up in a
form
that had the same look/feel of an Excel sheet. I imagine that this form
would be linked to the third table...?



"Allen Browne" wrote:

You need:
a) A table of employees, with an EmployeeID primary key.

b) A table of work items, with a WorkItemID primary key.

c) A 3rd table with these fields:
- WorkID AutoNumber
- EmployeeID Number who
- WorkItemID Number did what
- StartDateTime Date/Time when employee started on workitem
- Minutes Number how long (duration in minutes)

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"DumbWithData" wrote in message
...
I am trying to set up part of my database to track employee time. We
have
been simply doing this on an Excel sheet. I want to be able to enter
the
employees name and the amount of time that they worked on any
particular
work
item. Given that there are hundreds of work items, Creating a field
for
each
seems to be the wrong way to go. Could someone please help?




  #5  
Old December 17th, 2008, 03:54 PM posted to microsoft.public.access.tablesdbdesign
DumbWithData
external usenet poster
 
Posts: 21
Default Variable Field Names?

You stated that I could use a crosstab query to print something that looked
like an excel worksheet, but would there be any way to enter data in
something that looks like an Excel spreadsheet?

"Allen Browne" wrote:

Interface it as a form with a subform.

For example, you might create a form with a record for each work item, and a
subform (in continuous view) bound to the 3rd table. So, you find the
relevant work item, and then add another row each time someone works on it.
You can use a combo box in the subform for selecting the employee.

Alternatively, you could use a main form bound to the employee, and a
subform bound to the 3rd table. You find the employee's record, and then add
another row to the subform each time they work on a job (with a combo for
selecting which job it is.)

If you want to print something that looked like your Excel spreadsheet, use
a crosstab query.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"DumbWithData" wrote in message
...
Firstly, thank you Allen. I am wondering how I would set this up in a
form
that had the same look/feel of an Excel sheet. I imagine that this form
would be linked to the third table...?



"Allen Browne" wrote:

You need:
a) A table of employees, with an EmployeeID primary key.

b) A table of work items, with a WorkItemID primary key.

c) A 3rd table with these fields:
- WorkID AutoNumber
- EmployeeID Number who
- WorkItemID Number did what
- StartDateTime Date/Time when employee started on workitem
- Minutes Number how long (duration in minutes)

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"DumbWithData" wrote in message
...
I am trying to set up part of my database to track employee time. We
have
been simply doing this on an Excel sheet. I want to be able to enter
the
employees name and the amount of time that they worked on any
particular
work
item. Given that there are hundreds of work items, Creating a field
for
each
seems to be the wrong way to go. Could someone please help?




  #6  
Old December 17th, 2008, 06:33 PM posted to microsoft.public.access.tablesdbdesign
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Variable Field Names?

The crosstab would be read only. You could create a spreadsheet type
interface but it would require some code to implement.
--
Duane Hookom
Microsoft Access MVP


"DumbWithData" wrote:

You stated that I could use a crosstab query to print something that looked
like an excel worksheet, but would there be any way to enter data in
something that looks like an Excel spreadsheet?

"Allen Browne" wrote:

Interface it as a form with a subform.

For example, you might create a form with a record for each work item, and a
subform (in continuous view) bound to the 3rd table. So, you find the
relevant work item, and then add another row each time someone works on it.
You can use a combo box in the subform for selecting the employee.

Alternatively, you could use a main form bound to the employee, and a
subform bound to the 3rd table. You find the employee's record, and then add
another row to the subform each time they work on a job (with a combo for
selecting which job it is.)

If you want to print something that looked like your Excel spreadsheet, use
a crosstab query.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"DumbWithData" wrote in message
...
Firstly, thank you Allen. I am wondering how I would set this up in a
form
that had the same look/feel of an Excel sheet. I imagine that this form
would be linked to the third table...?



"Allen Browne" wrote:

You need:
a) A table of employees, with an EmployeeID primary key.

b) A table of work items, with a WorkItemID primary key.

c) A 3rd table with these fields:
- WorkID AutoNumber
- EmployeeID Number who
- WorkItemID Number did what
- StartDateTime Date/Time when employee started on workitem
- Minutes Number how long (duration in minutes)

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"DumbWithData" wrote in message
...
I am trying to set up part of my database to track employee time. We
have
been simply doing this on an Excel sheet. I want to be able to enter
the
employees name and the amount of time that they worked on any
particular
work
item. Given that there are hundreds of work items, Creating a field
for
each
seems to be the wrong way to go. Could someone please help?




  #7  
Old December 17th, 2008, 10:07 PM posted to microsoft.public.access.tablesdbdesign
DumbWithData
external usenet poster
 
Posts: 21
Default Variable Field Names?

Is there any where you would recommend that I start looking to be able to do
this?



"Duane Hookom" wrote:

The crosstab would be read only. You could create a spreadsheet type
interface but it would require some code to implement.
--
Duane Hookom
Microsoft Access MVP


"DumbWithData" wrote:

You stated that I could use a crosstab query to print something that looked
like an excel worksheet, but would there be any way to enter data in
something that looks like an Excel spreadsheet?

"Allen Browne" wrote:

Interface it as a form with a subform.

For example, you might create a form with a record for each work item, and a
subform (in continuous view) bound to the 3rd table. So, you find the
relevant work item, and then add another row each time someone works on it.
You can use a combo box in the subform for selecting the employee.

Alternatively, you could use a main form bound to the employee, and a
subform bound to the 3rd table. You find the employee's record, and then add
another row to the subform each time they work on a job (with a combo for
selecting which job it is.)

If you want to print something that looked like your Excel spreadsheet, use
a crosstab query.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"DumbWithData" wrote in message
...
Firstly, thank you Allen. I am wondering how I would set this up in a
form
that had the same look/feel of an Excel sheet. I imagine that this form
would be linked to the third table...?



"Allen Browne" wrote:

You need:
a) A table of employees, with an EmployeeID primary key.

b) A table of work items, with a WorkItemID primary key.

c) A 3rd table with these fields:
- WorkID AutoNumber
- EmployeeID Number who
- WorkItemID Number did what
- StartDateTime Date/Time when employee started on workitem
- Minutes Number how long (duration in minutes)

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"DumbWithData" wrote in message
...
I am trying to set up part of my database to track employee time. We
have
been simply doing this on an Excel sheet. I want to be able to enter
the
employees name and the amount of time that they worked on any
particular
work
item. Given that there are hundreds of work items, Creating a field
for
each
seems to be the wrong way to go. Could someone please help?




  #8  
Old December 18th, 2008, 01:22 AM posted to microsoft.public.access.tablesdbdesign
Allen Browne
external usenet poster
 
Posts: 11,706
Default Variable Field Names?

There are too many factors here to post a reply to that broad question.

Access is a relational database. To design a good database, there's quite a
bit to learn about how to create a relational schema. If you want a couple
of simple little examples, see:
http://allenbrowne.com/casu-06.html
http://allenbrowne.com/casu-23.html
If you want to read more about normalization, here's a link to some links:
http://www.accessmvp.com/JConrad/acc...abaseDesign101

If you want to build a spreadsheet in Access, you can do it, but you are
creating more problems than you are solving. IMHO it's not worth doing, so I
am not prepared to walk you down that path.

The relational structure suggested in the previous reply does not look the
same as Excel, but it is relational and therefore queryable.

The code to create a form that gives this kind of interface assumes a great
deal of knowledge, and is well beyond what we can cover in a newsgroup
posting.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"DumbWithData" wrote in message
...
Is there any where you would recommend that I start looking to be able
to do this?


  #9  
Old December 18th, 2008, 02:45 AM posted to microsoft.public.access.tablesdbdesign
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Variable Field Names?

I agree with Allen. Don't get too hung up on creating a user interface that
matches a previous style.

If you really want a spreadsheet type data entry, I would probably use a
crosstab query to push values to a temporary table for editing. Then use
queries and/or code to push the data back to normalized tables.

--
Duane Hookom
Microsoft Access MVP


"Allen Browne" wrote:

There are too many factors here to post a reply to that broad question.

Access is a relational database. To design a good database, there's quite a
bit to learn about how to create a relational schema. If you want a couple
of simple little examples, see:
http://allenbrowne.com/casu-06.html
http://allenbrowne.com/casu-23.html
If you want to read more about normalization, here's a link to some links:
http://www.accessmvp.com/JConrad/acc...abaseDesign101

If you want to build a spreadsheet in Access, you can do it, but you are
creating more problems than you are solving. IMHO it's not worth doing, so I
am not prepared to walk you down that path.

The relational structure suggested in the previous reply does not look the
same as Excel, but it is relational and therefore queryable.

The code to create a form that gives this kind of interface assumes a great
deal of knowledge, and is well beyond what we can cover in a newsgroup
posting.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"DumbWithData" wrote in message
...
Is there any where you would recommend that I start looking to be able
to do this?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:07 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.