B
Birgit via AccessMonster.com
Hi!
I have been bilding a form for orders (frmOrders) including a subform for
order detais (frmRows). In the frmRows is a control for UnitPrice. I should
be able to enter data into it in 3 ways:
1. Directly from table Products.
2. Based on calculation square meter*m2Price.
3. Manually.
Placing a sentence =IIf(m2Price>0;m2Price;ProdPrice) into the UnitPrice
control works in cases 1 and 2 but entering data manually does not.
Now I have solved this problem by macro: doubleClicking on control UnitPrice
copies the value from m2Price and I can edit the UnitPrice control. I know
there must be more sophisticated way to do this, but I don't know how. Is
possible to do this event procedure OnEnter? I have tried that with the macro
but it fires a circulation. Does it work by VBA code and how it should be
written, can anyone help me? Thanks for advance!
I have been bilding a form for orders (frmOrders) including a subform for
order detais (frmRows). In the frmRows is a control for UnitPrice. I should
be able to enter data into it in 3 ways:
1. Directly from table Products.
2. Based on calculation square meter*m2Price.
3. Manually.
Placing a sentence =IIf(m2Price>0;m2Price;ProdPrice) into the UnitPrice
control works in cases 1 and 2 but entering data manually does not.
Now I have solved this problem by macro: doubleClicking on control UnitPrice
copies the value from m2Price and I can edit the UnitPrice control. I know
there must be more sophisticated way to do this, but I don't know how. Is
possible to do this event procedure OnEnter? I have tried that with the macro
but it fires a circulation. Does it work by VBA code and how it should be
written, can anyone help me? Thanks for advance!