J
Jon
Hi,
I have a form a form to show the customer information and I button to create
new order for him. The Order form has the following fields:
OrderID>>>autonumber
cutomerID
employeeID
….
Also, there is a subform that is bounded on the Order Details table which
has the following fields:
OrderID
ProductID
…..
What I want to do is once the Order form open, I want access to set the
CustomerID value based on the customerID that is on customer form and
generate a new OrderID in order to pick the Product ID from the subform. I
try to set the value for the customer ID field in main form to be dufalted
using the following expression:
=[Forms]![Customer Details/Orders]![CustomerID]
The value is successfully added but when I tried to pick up a product from
the subform , an error message appears as follows:
“ You tried to assign the null value to a variable that is not a variant
data type.â€
Finally, what I want to do is assign & create a new order without entering
customer ID into the order form. Any suggestion please?
I have a form a form to show the customer information and I button to create
new order for him. The Order form has the following fields:
OrderID>>>autonumber
cutomerID
employeeID
….
Also, there is a subform that is bounded on the Order Details table which
has the following fields:
OrderID
ProductID
…..
What I want to do is once the Order form open, I want access to set the
CustomerID value based on the customerID that is on customer form and
generate a new OrderID in order to pick the Product ID from the subform. I
try to set the value for the customer ID field in main form to be dufalted
using the following expression:
=[Forms]![Customer Details/Orders]![CustomerID]
The value is successfully added but when I tried to pick up a product from
the subform , an error message appears as follows:
“ You tried to assign the null value to a variable that is not a variant
data type.â€
Finally, what I want to do is assign & create a new order without entering
customer ID into the order form. Any suggestion please?