forms, subforms and record viewing/entering/query
Posted: Thu May 01, 2008 5:15 pm
I believe I need a form with a subform to enter the data I require.
The main form would be jobs a business does for clients. There, I would enter the date, client, amount, ect... for a table of the jobs.
Then, I would need a subform, to enter data for employees into a table to keep track of which employees were at what jobs, and how long there were there, and what commission rate they get.
Can the Open office Base do this;
1. Enter data on the main form, enter a record, but not advance to a blank record, just enter the job, and keep the job details fresh on the screen?
2. For ease of use, I would also need a button on the form, that I can click that copies the jobid field from the current jobs record to the "employees_at_jobs" table. That way - as I enter data for the jobs, I will not make errors when entering data for the employees. For every job, I will have at least 2 employees present at the job earing different commission rates and perhaps present for different amounts of time.
3. I would also need the same sort of button to advance the employee records, so I can view one job record, and enter as many employees as I need for that job in the subform for the employees (while viewing the same job record).
4. How would I implement queries into the form? Suppose I need to go back and double check, or enter new data? For the situation I learn that the employees filled out their paperwork wrong, and there was an extra employee at the job, and the client paid a different amount than I already entered? I would need a query to show jobs for a date or week, and then when I select a job, the list of employees can be displayed? And even a list of what jobs a selected employee was present at in case the employee was incorrectly entered for a wrong job, and I need to change that?
5. What if I need to delete a job? Can the deletion of one job, also delete multiple records in another table? Or some way to clean up a table for that situation?
The main form would be jobs a business does for clients. There, I would enter the date, client, amount, ect... for a table of the jobs.
Then, I would need a subform, to enter data for employees into a table to keep track of which employees were at what jobs, and how long there were there, and what commission rate they get.
Can the Open office Base do this;
1. Enter data on the main form, enter a record, but not advance to a blank record, just enter the job, and keep the job details fresh on the screen?
2. For ease of use, I would also need a button on the form, that I can click that copies the jobid field from the current jobs record to the "employees_at_jobs" table. That way - as I enter data for the jobs, I will not make errors when entering data for the employees. For every job, I will have at least 2 employees present at the job earing different commission rates and perhaps present for different amounts of time.
3. I would also need the same sort of button to advance the employee records, so I can view one job record, and enter as many employees as I need for that job in the subform for the employees (while viewing the same job record).
4. How would I implement queries into the form? Suppose I need to go back and double check, or enter new data? For the situation I learn that the employees filled out their paperwork wrong, and there was an extra employee at the job, and the client paid a different amount than I already entered? I would need a query to show jobs for a date or week, and then when I select a job, the list of employees can be displayed? And even a list of what jobs a selected employee was present at in case the employee was incorrectly entered for a wrong job, and I need to change that?
5. What if I need to delete a job? Can the deletion of one job, also delete multiple records in another table? Or some way to clean up a table for that situation?