![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I'm new to Access and databases in general but am quite Excel literate - which I'm not sure is a help or hindrance with this. I need to convert my excel swamp to a tidy access database. I've made some progress but have hit a wall. I've had quite a poke around over the last couple of days for online help but maybe missing some terminology for things tolcik in to place. In MSAccess I've a table of 'bookings'. The table has columns for Username, 'Status', Account#, Duration, and Item booked. I've been able to make a query to give me the Duration booked and I need the query to look up another table for the "fee per hour" so I can calculate the 'Total Fee' for the booking event. (I later need to sum these totals based on Acount# - but that's alter...). The fee per hour is determined by the group status (internal or external etc.) and the 'Item' booked. The Table with the "Fee per hour" has Columns for 'Group Status', and 6 other columns with the name of the item as heading. So I'd like a query to use the 'Item' and 'Status' values in the of a 'booking' table to return its fee per hour from the fee schedule table. Is this possible or Excel-thinking? Any pointers much appreciated. Thanks, Tony |
#3
| |||
| |||
|
|
rubiocollins (AT) gmail (DOT) com wrote: Hi, I'm new to Access and databases in general but am quite Excel literate - which I'm not sure is a help or hindrance with this. I need to convert my excel swamp to a tidy access database. I've made some progress but have hit a wall. I've had quite a poke around over the last couple of days for online help but maybe missing some terminology for things tolcik in to place. In MSAccess I've a table of 'bookings'. The table has columns for Username, 'Status', Account#, Duration, and Item booked. I've been able to make a query to give me the Duration booked and I need the query to look up another table for the "fee per hour" so I can calculate the 'Total Fee' for the booking event. (I later need to sum these totals based on Acount# - but that's alter...). The fee per hour is determined by the group status (internal or external etc.) and the 'Item' booked. The Table with the "Fee per hour" has Columns for 'Group Status', and 6 other columns with the name of the item as heading. So I'd like a query to use the 'Item' and 'Status' values in the of a 'booking' table to return its fee per hour from the fee schedule table. Is this possible or Excel-thinking? Any pointers much appreciated. Thanks, Tony You could import the Excel fee rate worksheet into Access. Then open the Query Designer and add both tables. Link the stateus field (drag status from one table to the other). Then add that fee to a column. |
#4
| |||
| |||
|
|
I'm only guessing, but is your application for something like hiring tools out by the day. If so you really need to consder your tables. I would have 1 table for Items. Key ItemID. Presumably the same item is going to be used for many bookings. 1 Table for Customers / Users with name and AccountNo 1 Table for Status unless the only possibilities are "Internal" or "External" in which case a Yes/No field in the Customer table will be OK 1 Table of Prices including ItemID, Date, FeePerHour Then the table that brings everything together with the Customer, Item, Date and duration. The fee would be calculated by looking up the price for that item on the date booked. HTH Phil "Salad" <o... (AT) vinegar (DOT) com> wrote in message news:zdSdnQE3F4qLfXLUnZ2dnUVZ_radnZ2d (AT) earthlink (DOT) com... rubiocoll... (AT) gmail (DOT) com wrote: Hi, I'm new to Access and databases in general but am quite Excel literate - which I'm not sure is a help or hindrance with this. I need to convert my excel swamp to a tidy access database. I've made some progress but have hit a wall. I've had quite a poke around over the last couple of days for online help but maybe missing some terminology for things tolcik in to place. In MSAccess I've a table of 'bookings'. The table has columns for Username, 'Status', Account#, Duration, and Item booked. I've been able to make a query to give me the Duration booked and I need the query to look up another table for the "fee per hour" so I can calculate the 'Total Fee' for the booking event. (I later need to sum these totals based on Acount# - but that's alter...). The fee per hour is determined by the group status (internal or external etc.) and the 'Item' booked. The Table with the "Fee per hour" has Columns for 'Group Status', and 6 other columns with the name of the item as heading. So I'd like a query to use the 'Item' and 'Status' *values in the ofa 'booking' table to return its fee per hour from the fee schedule table. Is this possible or Excel-thinking? Any pointers much appreciated. Thanks, Tony You could import the Excel fee rate worksheet into Access. *Then openthe Query Designer and add both tables. *Link the stateus field (drag status from one table to the other). *Then add that fee to a column. |
#5
| |||
| |||
|
|
I'm only guessing, but is your application for something like hiring tools out by the day. If so you really need to consder your tables. I would have 1 table for Items. Key ItemID. Presumably the same item is going to be used for many bookings. 1 Table for Customers / Users with name and AccountNo 1 Table for Status unless the only possibilities are "Internal" or "External" in which case a Yes/No field in the Customer table will be OK 1 Table of Prices including ItemID, Date, FeePerHour Then the table that brings everything together with the Customer, Item, Date and duration. The fee would be calculated by looking up the price for that item on the date booked. HTH Phil "Salad" <o... (AT) vinegar (DOT) com> wrote in message news:zdSdnQE3F4qLfXLUnZ2dnUVZ_radnZ2d (AT) earthlink (DOT) com... rubiocoll... (AT) gmail (DOT) com wrote: Hi, I'm new to Access and databases in general but am quite Excel literate - which I'm not sure is a help or hindrance with this. I need to convert my excel swamp to a tidy access database. I've made some progress but have hit a wall. I've had quite a poke around over the last couple of days for online help but maybe missing some terminology for things tolcik in to place. In MSAccess I've a table of 'bookings'. The table has columns for Username, 'Status', Account#, Duration, and Item booked. I've been able to make a query to give me the Duration booked and I need the query to look up another table for the "fee per hour" so I can calculate the 'Total Fee' for the booking event. (I later need to sum these totals based on Acount# - but that's alter...). The fee per hour is determined by the group status (internal or external etc.) and the 'Item' booked. The Table with the "Fee per hour" has Columns for 'Group Status', and 6 other columns with the name of the item as heading. So I'd like a query to use the 'Item' and 'Status' values in the of a 'booking' table to return its fee per hour from the fee schedule table. Is this possible or Excel-thinking? Any pointers much appreciated. Thanks, Tony You could import the Excel fee rate worksheet into Access. Then open the Query Designer and add both tables. Link the stateus field (drag status from one table to the other). Then add that fee to a column. |
#6
| |||
| |||
|
|
You hav'nt made it clear whether status is a Yes/No field in your Customer table, in which case your Fee table should have 2 columns i.e. InternalFee & ExternalFee or whether you are using a StatusTable, in which case your Fee Table needs a StatusID related to the Status table Phil rubiocoll... (AT) gmail (DOT) com> wrote in message |
#7
| |||
| |||
|
|
You hav'nt made it clear whether status is a Yes/No field in your Customer table, in which case your Fee table should have 2 columns i.e. InternalFee & ExternalFee or whether you are using a StatusTable, in which case your Fee Table needs a StatusID related to the Status table Phil rubiocoll... (AT) gmail (DOT) com> wrote in message |
![]() |
| Thread Tools | |
| Display Modes | |
| |