S
samah
Access beginner. Access 2003 on WinXP.
In Sales Order Processing Database I have the following tables.
tblProducts
ProductID pk text
ProductName
ProductPrice
<other fields >
tblDepartments
DepartmentName pk text
tblEmployees
EmployeeID pk text
EmpFullName
EmpLastLame
DeparmentName fk
<other fields>
tblCustomers
CustomerID pk text
CusotomerName
<other fields>
tblOrders
OrderID pk number
OrderDate
CustomerID fk
EmployeeID fk
tblOrderDetails
OrderID cpk
ProductID cpk
Qty
QuotedPrice
<Other fields>
In the orders main form where Record Source property is set to a query
based on orders table, I have a combo box that provides employee names
based on a query that returns sales department employees.
Now to the question. In the company there some orders/sales that are
treated as 'Direct' and can not be attributed to any sales person. So
for the above combo box I need one more value 'Direct' added along with
the employees' name. One thing that came to my mid first was to add a
new record to tblEmployees with a single field value 'Direct' under
empLastName field and proceed.
The value 'Direct' doesn't belong to the tblEmployees but on a scenario
like this, can we use it as an exception and break the rules?
I have a few acquired databases where situations similar to this has
been handled this way!
I am very much curious to know how you, the developers and experts
handle this kind situation?
Thank you to all in advance.
- samah
In Sales Order Processing Database I have the following tables.
tblProducts
ProductID pk text
ProductName
ProductPrice
<other fields >
tblDepartments
DepartmentName pk text
tblEmployees
EmployeeID pk text
EmpFullName
EmpLastLame
DeparmentName fk
<other fields>
tblCustomers
CustomerID pk text
CusotomerName
<other fields>
tblOrders
OrderID pk number
OrderDate
CustomerID fk
EmployeeID fk
tblOrderDetails
OrderID cpk
ProductID cpk
Qty
QuotedPrice
<Other fields>
In the orders main form where Record Source property is set to a query
based on orders table, I have a combo box that provides employee names
based on a query that returns sales department employees.
Now to the question. In the company there some orders/sales that are
treated as 'Direct' and can not be attributed to any sales person. So
for the above combo box I need one more value 'Direct' added along with
the employees' name. One thing that came to my mid first was to add a
new record to tblEmployees with a single field value 'Direct' under
empLastName field and proceed.
The value 'Direct' doesn't belong to the tblEmployees but on a scenario
like this, can we use it as an exception and break the rules?
I have a few acquired databases where situations similar to this has
been handled this way!
I am very much curious to know how you, the developers and experts
handle this kind situation?
Thank you to all in advance.
- samah