Difficulties In Designing Functional Forms And Tables...
Nov 14, 2004
Hi,
I am a newbie at Access and am basically designing my first database. This database is for a short term project and is designed to track the attendance of employees at acompany. Here is a brief description of the tables and forms in question.
EmployeeInformation - this table stores records of each employee, their ID, DOB and SIN.
AttendanceProfile- this table stores records of prolonged absence periods for each employee. A given employee can have many attendance profiles, meaning that this table is linked to the EmployeeInformation table via a one-many relationship. This table will provide detailed information about the status and history of each Profile. So for example if an employee misses work for 12 days due to an appendicitis operation, the exact nature and dates of this absence would be listed as a new profile. The primary key for this table is an autonumber field called ProfileID
ActionLog - this table stores the actions taken by company employees (if any) in response to each AttendanceProfile. It is connected to the profiles table via a one-one relationship with ProfileID being the foreign key in this table. Another main field is the ProcedureNum field which will list the number of each procedure taken for a given ActionLog record. This table is needed to track what the company has done/is doing to track an employees prolonged absence.
Allow me to illustrate with an example. An employee, John Doe misses 15 days in June 2001 due to an illness in the family. An AttendanceProfile record is then made for this period illustrating the exact nature of Mr. Doe's absence as well as tracking what official documents he has submitted (eg medical note, official company documents). Another matching record containing the same ProfileID is also made in the ActionLog table describing what the company has done so far to track this absence. So if an HR employee calls Mr Doe's physician to verify this illness or sends a letter requiring further documentation, each of these steps is listed in this log for this absence profile.
Sorry for the long-winded explanation, but better now than to have to clarify myself later. Here is where I'm stuck. I would like to set up two data entry forms, to create new AttendanceProfile records and related ActionLog records. Obviously, these corresponding records are linked directly by the ProfileID field. After completing the AttendanceProfile form, I would like the user to be able to click a command button to open another form (I am avoiding a subform in this case because my attendanceProfile form is huge and I cannot conveniantly fit a subform on it) to open a new form where they can enter Procedure descriptions and dates on the ACtion log. For each new procedure the user enters, an autonumber fields automatically increments the procedureNumber for that specific ProfileID.
Finally, my question to any of you is, assuming that I have already designed the AttendanceProfile table and form, how shall I design the ActionLog table AND forms to accomplish this exact task.
Once again, sorry for the excessive detail. Your assistance is greatlys appreciated.
Regards,
Mike J.
View Replies
ADVERTISEMENT
May 2, 2014
tell me that can we use functional keys F1, F2,F3,,,,,,,,,,,,,,F12 in ms access to perform commands like saving a form data , for closing form refreshing form, clear form.Or is there any way to make shortcut keys combination like[(ctrl+s)(ctrl+c) (ctrl+A)] in access to perform action like saving,closing,clearing, current form.
View 1 Replies
View Related
Nov 29, 2006
Hi all,
Excuse me for being new here...but i need some advice on a database im working on. Im currently in a school trying to develop a database that records my students' participation in some arts activities.
What we need is a database that could capture the number of participants that actually went for a particular event (sounds easy rite? - :rolleyes: ).
To break it down:
1. The EVENTS are broke up into 3 categories : Exposure, Experience & Excursion.
2. Each EVENT consists of the number of PARTICIPANTS that is divided into Students, Teachers, Parents and Alumni.
3. Lastly, the PARTICIPANTS are further seperated into different interest groups such as Band, Choir, Drama Club etc....
It is quite overwhelming for me as im not that experienced in using Access..so i'll be glad if someone could help to advice me on how i should design the tables and their relationships.
Thank you.
Cheers! :D
View 1 Replies
View Related
Jul 29, 2007
want to create a database for our college examination cell. I wanted to know hwo I can create such a table:
RollNo. |------Subject1------|-----Subject 2-------| .....
-------| Theory |Viva| Total |Theory |Viva | Total |.....
There are around 6 subjects.
I want it soemthing like subject1.theory, subject1.viva etc
I know that is not exactly possible in MS Access, so could anyone tell me the best way to do it. I somehow wanted the subcolumns to appear as part of the subjects. (as we can do in excel)
I thought of naming them as sub1_theory, sub1_viva....... but not too happy with it.
any help would be appreciated.
View 4 Replies
View Related
Nov 28, 2006
Could someone please help me with the following.
I have a form that gets some basic information...
My table looks like the following..
NewApplicationID
ClientName
ClientAddress
ClientPhone
ClientEmail
later on down the road, we will be inputing other fields, is it possible to have another form for specific information, that would be linked to this....
thanks for any help
Josh
View 1 Replies
View Related
Nov 25, 2012
I did using below:
One table with Student Basic Records with Course name and Total Fee
Tabel name Student_Rec and Fields are below
ID, StudentName, Course Name, RollNo, Total Fee
then another table name Fee_Details for receiving dues in installments.
ID, RollNo, FeeDue, FeePaid, Comments
Now i want the FeeDue Field should show the Balance feedue of each student
I mean it automatically check total fee due from student_Rec table and also check all previous entries for the same rollnumber in Fee_details Table and show the pending amount as FeeDue.
View 4 Replies
View Related
Aug 25, 2005
I have written a database application in Access 2003 for my company. I am going to deploy it with Terminal services on a Windows 2000 Server. I went to my server room to logon and test and found that 90% of the screens I designed had print and close command buttons that were off the screen. I developed the application on a 19" plat panel display with 1280 X 1024 res. The server room has a 17" Non-flat panel with 1024 X 768 res. I am assuming this is the culprit. Is there a way to make the application a "ONE SIZE FITS ALL" solution. Im sure writing a different version for every possible resolution is not how it is done. Any ideas would be deeply appreciated
Thanks
View 1 Replies
View Related
Oct 17, 2014
Is there a way to preview a form you are designing to see how it will look when it's full frame?
View 12 Replies
View Related
Aug 19, 2004
I am new to Access and I think there is a simple answer to this question, but I am lost.
I have several access databases that are the same, i.e forms,tables, but have different data in the tables.
I created a query in one and was planning to import into all the others. However, after importing the query to another database it did not run, i.e I could see the field names but no data showed. The field names and tables are the same in the import database as the export one. However, neither database has relationship, joins(relationships) are created within the query.
Can anyone please tell me why this query will not run when imported, I would hate to recreate it for every database I have to work with for this project.
Thank you
View 1 Replies
View Related
Feb 22, 2006
I've been working on a database for the last month or so. It's been a slow process since I've been learning Access and VBA in the process.
But my supervisor wanted a copy of it as a progress check to send to his boss. So I sent an email with a copy of the database as an attachment.
THe email went through, but when my supervisor tried to open said email, a dialogue came up saying that Access couldn't open the file because it was "out of the intranet or on an insecure site" or something along those lines
I was just wondering what this meant and how I would be able to send my boss a copy of the database so that it can be reviewed and such. Would this require splitting it?
Thanks in advance,
Nathan
View 2 Replies
View Related
Aug 29, 2007
I'm having trouble creating my query
I have a table representing the company's products. Ever once in a while the products get replaced by a newer product. Like below
_____________________________
Product - Replaces - Replaced By
a..................................b
--------|----------|-----------
b.................a...............e
--------|----------|------------
c
--------|----------|------------
d
------------------------------
e.................b
Can someone help me write a query so the result below will be shown in
three fields.
Product - Replaced by level 1 - Replaced by Level 2-Replaced by level 3
....a..................b.......................... . e......................and so on
View 4 Replies
View Related
Feb 8, 2006
Hi, I’ve been having some problems being able to do some things on my database, I was doing ok creating my system but now I’m a bit confused about what to do and I’ve been trying but getting no where. Firstly on my order form I need a total for the products which are in an subform and after the order is complete I need to be able to create an invoice and keep all the order information in the 'invoice' and 'invoice details' tables. I also need it to update the stock levels after the order is complete. Then I had created a tab in 'view customers' and I wanted to have it so that past customer orders could be viewed. Any help is appreciated; here is a link to my system:
'Gamez System' (http://www.savefile.com/files/5877934)
Thanks, Bob.
View 1 Replies
View Related
Dec 14, 2006
Hi! I have a problem with my form [EDITAR], the problem is that i did a form basing me on a table, but now i want to create a command that when i press it, it has to let me edit my data. i don't know how to explain me very well. i want to change my data but changing it with my form and save that information.
the other problem is that i want to create the same form for but only to add new data on the same table, i want to create a command that i will press if i want to add new records.... help i really need help:confused:
View 7 Replies
View Related
Jun 29, 2006
Hey guys,
This has really got in my nerves.....
I have a table with 2 fields (pr_row, pr_col).
All i want to do is:
I want to update the table so that every 21 records, the pr_col field will increase from 1 to 21 and so on, and the pr_row field
will remain with the same value (but increasing by 1 every 21 records)
Explaining
pr_row-pr_col
===========
1 - 1
1 - 2
1 - 3
.
.
.
.
1 - 21
2 - 1
2 - 2
2 - 3
.
.
.
What is the update query that i must execute?
View 1 Replies
View Related
Jul 22, 2015
I need to import an excel file with incorrectly formatted date field and it worked only to import them as text:
1 jan 2015
1 feb 2015
1 mar 2015
etc.
Using CVdate converts jan, feb, nov and dec to correct date, but gives an error message with mar to oct.
View 1 Replies
View Related
Oct 27, 2005
Hello,
I am having difficulties with working out how to create a correct query from my database. :confused:
These are the two results I require:
What strength of whisky sells the best at Christmas (How do I do an 'In-Between' date condition regardless of the year? i.e. >= #01/12/____# AND <= #31/12____#)
Which companies have not purchased at least one bottle from each region?
However, I am not sure how I would go about getting these specific results from the database. I have done serveral previous questions based on the database (which can be seen in the .mdb file) however these two are proving troublesome. I have attached the database to this post if anyone who is at ease with queries would be kind enough to have a quick peeky at it.
Any help would be greatly appreciated !
Note. the database information is fictisious. :rolleyes:
View 1 Replies
View Related
Oct 26, 2005
Hey,
I have an access database that imports a certain range of a certain sheet from 30 files all of which are in the same folder and I am trying to get that BOTTOM MOST peice of code to automate the process.
Now one of my many complications was that the excel files are workbook protected, and so it would give the 'cannot decrypt error' that’s why I have all that code regarding unprotecting it... but for some reason its not working
It gets to the line where it gives it the password and it tells me the password is unaccepted, and yes the password is correct...
It must have something to do with the do loop, because it works fine whenever I used it over one import file and thus without the loop... Like this for ex works perfectly fine
Code:Public Function TransferSP()ExcelFile = "G:CBTFILENAME"On Error GoTo ErrTrpStartAgain: DoCmd.TransferSpreadsheet acImport, 8, "TEST", "G:CBTFILENAME", True, "Access_Upload!C13:L34"xlapp.ActiveWorkbook.Protect (blah)ErrTrp:If Err.Number = 3161 Then 'Encripterror so unprot wb xlapp.Visible = False 'Open Excel xlapp.EnableEvents = False 'Disable Events xlapp.workbooks.Open ExcelFile 'Open File xlapp.ActiveWorkbook.Unprotect (blah) 'Unprotect xlapp.ActiveWorkbook.Save 'Save xlapp.EnableEvents = True 'Enable Events xlapp.ActiveWorkbook.Close 'Close File xlapp.Quit 'Quit Excel GoTo StartAgain 'Try and Import againElseEnd IfEnd Function
So Please tell me what is wrong with this bottom piece of code...
And secondly, I have a table which contains a list of names, whether they are active (checkbox) and their filenames each on a column of its own...
Can anyone show me how i can include into my code (assuming the password problem is fixed) that would allow me to place an if statement that checks whether the user is active or not... IF he is then it imports his file (using the filename column next to his name).... If he is not active then it just goes onto the next person without importing him/her
Right now I have it importing all the files in that folder
Code:Option Compare DatabasePublic xlapp As New Excel.ApplicationPublic Sub ImportAll() Dim strPath As String Dim strFileName As String strPath = "G:CBT" 'Set Path strFileName = Dir(strPath & "*.xls") 'Set first file Do On Error GoTo ErrTrp DoCmd.TransferSpreadsheet acImport, 8, "Test 2", strPath & strFileName, True, "Access_Upload!C13:L34" ErrTrp: If Err.Number = 3161 Then 'Encription error so unprotect workbook xlapp.Visible = False 'Open Excel xlapp.EnableEvents = False 'Disable Events (Macro's) xlapp.workbooks.Open strPath & strFileName 'Open File xlapp.ActiveWorkbook.Unprotect (blah) 'Unprotect 'Try and Import again DoCmd.TransferSpreadsheet acImport, 8, "Test 2", strPath & strFileName, True, "Access_Upload!C13:L34" xlapp.ActiveWorkbook.Save 'Save xlapp.EnableEvents = True 'Enable Events xlapp.ActiveWorkbook.Close 'Close File xlapp.Quit 'Quit Excel Else End If strFileName = Dir() 'look for next file If strFileName = "" Then 'no more files Exit Do End If LoopEnd Sub
Please let me know what I can do with this
I am a novice at coding...Just tell me where to put the code
Thanks
Ayyad
View 11 Replies
View Related
Aug 29, 2007
hello all,
i stumbled upon this site via google while i was trying to find a solution to my problems! i'm a pretty proficient pl/sql writer and this is my first time trying to learn jet sql so a lot of the things i'm used to in pl/sql can't be done in jet sql!
1) i'm trying to create a summary record from RR_FT_COMPONENT to RR_FT_TOT_PAYOUT. this is basically summing some payout fields by grouping by payee_id and period_id. from my research i've seen that jet sql doesn't like sum or group by's for updates. is it the same for doing select statements for insert into?
when i run the query i get the following error: "ms access can't append all the records in the append query. MS access set 0 fields to null due to a type conversion failure"
all of the fields on both tables have the same type. is this a group by and sum problem? i ran the select statement separately and it worked fine.
code:
INSERT INTO RR_FT_TOT_PAYOUT ( market, region, financial_center, payee_id, employee_name, manager_flg, lic_code, job_code, period_id, volume, cp_spread, ytd_spread, cp_comm, ytd_comm, prior_yr_flag )
SELECT max(rc.market), max(rc.region), max(rc.financial_center), rc.payee_id, max(rc.employee_name), max(rc.manager_flg), max(rc.lic_code), max(rc.job_code), rc.period_id, sum(rc.volume), sum(rc.cp_spread), sum(rc.ytd_spread), sum(cp_comm), sum(ytd_comm), max(prior_yr_flag)
FROM RR_FT_COMPONENT AS RC
GROUP BY rc.payee_id, rc.period_id;
2) in this next code i'm trying to sum spread information in the ft_txn_summary table for a given payee_id, market and period_id. i'm using dsum and have the appropriate joins to keys on the tables, yet this update sums ALL records in the ft_txn_summary table rather than summing the specific payees in the join. any idea on what's wrong or how to debug dsums?
code:
UPDATE rr_ft_component AS rc SET rc.cp_spread = Dsum("txn_spread","ft_txn_summary","ft_txn_summary.payee_id= " & [rc.payee_id] AND "ft_txn_summary.market= " & [rc.market] AND "ft_txn_summary.period_id= " & [rc.period_id])
WHERE rc.component_name='Total Revenue';
any help would be appreciated! thank you!
View 1 Replies
View Related
Aug 19, 2005
Could someone please give me some help with designing a database in access.
I know excel really well, and took a class on access, and have tried a few times to get started with access but always to no avail.
I have a company that installs real estate signs
1. we have about 200-300 agents (which represent about 10-15 offices)
2. 3 things can happen to 1 sign -
-1. installed the first time (charge)
-2. have a sold sign, for sale sign, or flyer box put on(charge)
-3. Finally removed(free, no charge)
-4. the date would have to be tracked on all of these occurences
3. We have about 10 products or things that can be put or hung on a sign.
I can set up the offices and the agents, and link them just fine. I can set up the products and do the work detail. The problem I have and cannot figure out is trying to bill or invoice this. Some agents are billed individually and some agents don't get billed, there office gets billed as a whole. Could someone please offer some insight on how maybe to go about this from the beginning.
Thanks for any help
Josh
View 3 Replies
View Related
Jul 17, 2007
Hi
I've been asked by someone at work to design a "no brainer" gui for an access database but I am a complete newbie with regards to this - sure I can do simple queries to filter the information I what in design view but this is something else.
How can I design a gui that can be clicked on or is executed when the mdb icon is clicked that will allow people to access from a drop down box the area they need information about and then have to option to either have the information exported to excell or in a summary report to be printed off. Should I use the form wizard or the report wizard - though none of them seem to do what I want.
I've set up the database from the excell spreadsheets they gave me containing activity figures per operational region. The regions are listed in the first column and I wanted a drop down box to list them.
We have 6,000 entries on the database. These cover 8 regions with some regions containing maybe 500+ entries. As mentioned the regions are listed in column one of the database.
When I select the regions column in a drop down box instead of getting just one entry per region, I get every single entry for example 500 for region 1, 200 for region 2 etc. In other words it is reading the rows not grouping them according to region which is what I want
How do I group them so Access only includes one entry per region on the drop down box and what is the best way to design the gui to give the results I am after?
Thanks
Andrew
View 3 Replies
View Related
Mar 15, 2006
Hi All,
my first post here, and hope that someone may be able to help.
I am setting up an access db for a bowling tournament and need some help with it if possible.
tables are planned, roughly as follows (some fields removed for clarity)
tblBowlers
BowlerID
Name
Association Number
tblSquads
SquadID
Name
Date
tblEntries
ID
BowlerID
SquadID
Game1
Game2
Game3
All bowlers will be entered into the tblBowlers table and all squads entered into the tblSquads table. Then each time a bowler plays (they can play more than once) there entry will be put into the tblEntries table.
I need a query that will give me each bowlers best 3 entries. So If Joe Bowler plays 4 times and bowls 168, 143, 207 - 208, 197, 214 - 169, 190, 199 - 201, 198, 245. I would need a query to list the best 3 of Joe's entries along with the best 3 of all other bowlers (sorted in ascending order, best bowler at top)
Any help would be really appreciated. I can do this in Excel, but I really dont want to :eek: LOL
Thanks
AJ
View 14 Replies
View Related
Jul 30, 2007
I have 2 tables which store information. One is a main table, and the other is an archive table. They store exactly the same information - i.e. the structure is the same. There is a checkbox in the main table and when users are done with an item they check that and it is moved to the archive table.
I need to generate a query which will treat those two tables as one table.
For example I need reporting by date for how many items received. I can do this for each table sperately but not together, at least not how I want to.
I need the results of the query to have the date in one column and category in another column and count of how many items in another column. But for both tables at once.
Is this possible? Am I being clear enough? TIA!
View 3 Replies
View Related
Oct 1, 2004
Good day,
I am in the process of creating a database in Access.
I need some advice on designing the table structure.
I have 10,000 products.
There are 40 product types.
Some fields are the same for all products. (I.E. description, price).
Some fields are unique to the product type.
I am thinking this:
1. Have a table called products with all 10,000 products including description, price, producttypeID and productID.
2. Have a table with producttypeID and ProducttypeDescription.
3. Have 40 tables with ProductID and fields that are unique to that category of product.
Is this the right way to go about it?
Thanks in advance.
View 3 Replies
View Related
Sep 21, 2004
I have attached a sample of a calendar report I'm working on. I got it to "almost" work! Hard to explain without showing it. . . . The problem is getting it to know not to start the calendar until Day 1 of the month. Right now, it does the following:
Su MoTu WeTh Fri Sat
04 05 06 07 01 02 03
08 09 10 11 12 13 14 etc.
So I want it to know to put "blanks" in the Sun. through Wed. spot. I looked at a sample calendar that Meloncolly had uploaded here, but I couldn't figure out how to get it to work with the way I'm doing it. (I need to be able to print a year at a time. . . .)Maybe a combo of the two?
If I can get that to work, then I would like to get multiple day appointments to appear on each day between the start and end date of that apptmt.--but one thing at a time. Does anyone know how to fix this first step?
Oh, the report to open is rptCalDays.
View 4 Replies
View Related
Feb 28, 2008
I'm trying to develop an application to help me generate quotes. Right now I have a spreadsheet with all of our products and their prices. When I need to generate a quote I have to find each line item on the spreadsheet, manually type in the item and its price in a quoting spreadsheet, and repeat until I've entered all the items. This is tedious and error-prone.
I'm a software engineer with experience with relational databases but have hardly any experience with Access, and I'm hoping that it is a good tool for this application. I'm thinking that I can create a table with all of our products and their prices, and to generate a quote I simply enter the quantity of each item in a form and have a report generate the quote. I'm not sure how to go about designing this though. I've searched far and wide for a template or tutorial on a similar problem but have come up short. Can you guys help me get started?
View 1 Replies
View Related
Sep 1, 2005
Hi guys, i need help with a sample database, and wondered if anyone could tell me the entities and how to calculate the prices etc. If anyone could attempt starting the database off for me it would be appreciated too!!
Here is the spec!!!
You are required to produce and document a design that meets the requirements of the McDuffs Burgers scenario:
The corporate office of McDuffs Burgers has asked you to design a database to help track its restaurants and managers. The database is to help the management show the total annual sales of each restaurant and the performance of each manager, as measured by the totals annual sales of all restaurants for that particular manager. Each restaurant is supervised by a single manager, but a manager is also responsible for several restaurants. The company stores typical personnel data (name, salary, and so on.) for each manager as well as basic data for each restaurant such as the telephone and address of each restaurant, its size in square metres, and total annual sales for the last fiscal year. The company would also like objective ways to measure the performance of a manager such as the total revenue for which they are responsible, the average annual revenue per restaurant, the average annual revenue per square foot, etc.
The database should also track the orders that are placed by individual restaurants to the corporate office for various food supplies. Each order is associated with a specific restaurant, and of course, a single restaurant will place multiple orders during the course of a year. The company uses a standard set of product numbers, product descriptions, and associated prices that applies to all restaurants. Each order can specify several products, and a single product may appear in several orders. The database should be capable of computing the total cost for each order.
Deliverables
1. Entity definition for each entity.
2. Entity Relationship Diagram, which must show entities, relationships and membership.
3. Relationship definition for each relationship.
4. Relations (This must include for each relation the primary and foreign keys).
5. Data Dictionary.
Furthermore:
You are required to implement the design (produced in the first part of the assessment - McDuffs Burgers - Database Design), by designing and creating queries, forms, reports and any supporting code. Revisions may be made to the design in the implementation process.
You should note the management of McDuffs Burgers has little experience of database systems and wish to be advised on the information the system can produce.
They require example reports demonstrating the capabilities of the system to:
- Aid the day to day operation of the business.
- Provide appropriate management information.
You must also implement an appropriate user interface to the database easy to use.
View 5 Replies
View Related