Hi,
I'm having this little problem.
I'm creating this program that allows customers to place an order.
First he has to choose on a small form which kind of products (productgroup) he wishes to order. Once the customer has confirmed that, frmOrders is loaded, where the customer can only choose those products that belong to the choosen productgroup.
Now, a customer also has several budgets (one for each productgroup he is allowed to place an order for).
I put those budgets in a seperate table:
tblBudget
---------
BudgetId
Budget
CustomerId
ProductGroupId
My problem is that I can't find a way to load the budget into a textfield on frmOrders, once the form is loaded.
I tried this:
Me!Budget.ControlSource = "Select Budget FROM tblBudget WHERE CustomerId=" & Me!CustomerId & " AND ProductGroupId=" & Me!ProductGroupId
This gives a false value in the textfield (#name).
Could anyone help me please?
Thanks in advance,
dj.
I'm having this little problem.
I'm creating this program that allows customers to place an order.
First he has to choose on a small form which kind of products (productgroup) he wishes to order. Once the customer has confirmed that, frmOrders is loaded, where the customer can only choose those products that belong to the choosen productgroup.
Now, a customer also has several budgets (one for each productgroup he is allowed to place an order for).
I put those budgets in a seperate table:
tblBudget
---------
BudgetId
Budget
CustomerId
ProductGroupId
My problem is that I can't find a way to load the budget into a textfield on frmOrders, once the form is loaded.
I tried this:
Me!Budget.ControlSource = "Select Budget FROM tblBudget WHERE CustomerId=" & Me!CustomerId & " AND ProductGroupId=" & Me!ProductGroupId
This gives a false value in the textfield (#name).
Could anyone help me please?
Thanks in advance,
dj.