demunchkin
MIS
Hi,
I'm working with a database that will be used to capture employee number and amount spent either in the pharmacy or in the restaurant. There are two separate forms: one for the pharmacy and one for the restaurant. An entity (pharmacy or restaurant) is auto-attached to the form based on which employee is logged in. In the end, a text file will be edited and exported with all necessary data (for payroll deduction). Here is my problem: what I need to do is use a query place a code in a table on each record based on which entity it came from per the form.
For example: employee 123456789 comes into pharmacy (entity code 107) and purchases $15.25 worth of medication.
Employee 987654321 goes to the restaurant (entity code 112) and purchases $5.03 worth of food.
I need to send that info to a table and populate the [entity] column with a code based on the text. I need it to do this without asking me for the parameter name.
123456789 107 1525
987654321 112 503
I apologize if this is confusing. Too many cooks were in this pot in building this database. I will try to explain better if there are questions.
Any help would be extremely appreciated.
Thanks,
Devin
I'm working with a database that will be used to capture employee number and amount spent either in the pharmacy or in the restaurant. There are two separate forms: one for the pharmacy and one for the restaurant. An entity (pharmacy or restaurant) is auto-attached to the form based on which employee is logged in. In the end, a text file will be edited and exported with all necessary data (for payroll deduction). Here is my problem: what I need to do is use a query place a code in a table on each record based on which entity it came from per the form.
For example: employee 123456789 comes into pharmacy (entity code 107) and purchases $15.25 worth of medication.
Employee 987654321 goes to the restaurant (entity code 112) and purchases $5.03 worth of food.
I need to send that info to a table and populate the [entity] column with a code based on the text. I need it to do this without asking me for the parameter name.
123456789 107 1525
987654321 112 503
I apologize if this is confusing. Too many cooks were in this pot in building this database. I will try to explain better if there are questions.
Any help would be extremely appreciated.
Thanks,
Devin